Forum Moderators: phranque
Would it slow the server down to have too many files in one folder?
I have a website with all of my product images in two folders. There are currently about 5,000 images in each folder. I notice that sometimes the server will hang when trying to load an image; however, most of the time the photos load quickly. I plan to eventually have over 15,000 photos.
I know that the larger the database, the slower the query. Is it the same with folders?
Would it slow the server down to have too many files in one folder?
I know that the larger the database, the slower the query. Is it the same with folders?
15,000 files sounds fine for modern OS/filesystems/hardware to me.
Be carefull. Splitting into a few folders will be enough.
SN
PS: It is absolutely pathetic that modern OS like WinXP with an "advanced" filessystem like NTFS cannot deal with 40,000 files. And I'm not even talking about displaying them in explorer, but accessing them through the API.