How many sub-folders in Spaces is too many?

I need to store a large number of folders in spaces, up to 1-2 million. I can break them down into more sub-folders, but I’d rather not if possible.

My question is, if I have 2 million sub-folders within a single folder, will that slow down retrieval time of the files within those sub-folders?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The way that object storage generally works is that folders are simply tags or categories applied to each object. The object is not physically or programatically any more difficult to access for the underlying system. While all these subfolders in a single folder would result in needing to make several requests to receive the listing for that parent directory it should not affect the speed at which individual files are retrieved and served.