In SharePoint 2007, are there any side effects to having 10,000+ folders in a document library?

  • 1
    with 10,000 folders, you are pretty much only going to get effects :) – Nat Dec 5 '11 at 23:02

The question should probably be rephrased to be more specific.

Generally you need to apply some organization to your content. There shouldn't be more than about 2,000 items in a given object. So if you had 10k+ folders they should be spread across multiple folders.

There are two ways to organize content, build it into the user experience so that users are filing things where they belong, or hiding that from the user and doing it on the back end with the folders suppressed in a view so that they show as if they are not in a folder. I prefer the later as I hate folders from a user experience perspective.

It is also possible to organize your content (and folders) in different document libraries, which is probably a better idea if you have that many. It is also possible to build custom solutions that will store documents in multiple site collections, each within their own content database, and then put an intuitive interface on top of that which hides the back end content storage structure.

  • My question was more a technical one, rather than an UX one. Will creating that many folders in a document library cause performance issues, or bloat the database, or anything like that? – Ishmael Smyrnow Dec 6 '11 at 21:01
  • 1
    The foundation of my position is based on performance. MS's general guidance for things in SharePoint or on a file folder is to have no more than 2k items in a given folder. So you wouldn't have 10k+ documents or 10k+ folders in a given level. This isn't a hard limit, but is where issues start to crop up. Organizing 10k+ items into folders will increase, not decrease performance but it is important to remember not to have more than 2k items at a given level. – Mike Oryszak Dec 6 '11 at 21:20
  • I see. When I read that recommendation previously, I assumed they meant 2k documents, and wasn't considering the folders themselves to be items. – Ishmael Smyrnow Dec 6 '11 at 22:56

Absolutely agree this is not good for your farm - basically because of SQL locks with a large queries. but I would say it depends on your hardware and user activity. I've worked with a customer with >250k documents in a root folder of a Doc Lib. Fortunately these documents were not so popular to browse via DL views, and all operations with documents they were doing via Search. And they were happy with this until upgrade to SP2010. Please try to avoid this using Mike's suggestions.


The main problem is that the browsing interface on the library will become un-usable. So when adding this many folders, the search interface must be sorted so that documents within the library can be found.


Just to add to what others have mentioned. I experimented with uploading 1 million text files, each being 1 KB in size.

The performance issues I encountered were:

  • Extremely slow upload speeds when trying to upload all these files.

  • Extremely slow browsing (sometimes the SP sites would simply timeout).

FYI; In SharePoint 2010, the maximum recommended list view threshold is 5,000, now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.