I want to have image storage on my website and want to plan an efficient method just in case there are a lot of users.
Would it take too long for the system to seach for a file if there are 10000's of files in one directory? Would it be faster if I had a bunch of directories referenced by a random directory name in the database, such as "images/fdasfd123ds/filename.***" instead of "images/filename.***"? Or to take it further, two levels of random directory names such as "images/fdafs/fdafsd/filename.***"? I don't know enough about operating systems to know if any of this matters.
I'm sure someone here has dealt with this before, everyone here seems really knowledgable. Thanks in advance.