xfusion Posted September 3, 2007 Share Posted September 3, 2007 Hey, I searched the forums and didn't see an answer to this question. I need to store a lot of files on my server, ~100 000 files. The files range from 800kb to 30MB. Would it make a difference in search time for PHP to find a single or multiple files if all the files were in one directory, or should I map them over several directories (e.g alphabetically)? Quote Link to comment https://forums.phpfreaks.com/topic/67825-solved-file-directories/ Share on other sites More sharing options...
teng84 Posted September 3, 2007 Share Posted September 3, 2007 well its obvious it harder to find what your looking if theres allot of file. so i guess better to organize them like separate diff type of file?? does it make sense? Quote Link to comment https://forums.phpfreaks.com/topic/67825-solved-file-directories/#findComment-340910 Share on other sites More sharing options...
xfusion Posted September 3, 2007 Author Share Posted September 3, 2007 ye, that's what I figured. I'm already separating files by type (images and docs). But there are still going to be tonnes of docs, and they're going to be very hard to search through. What would be the best (fastest) method to categorize these docs? Alphanumerically into designated folders? Quote Link to comment https://forums.phpfreaks.com/topic/67825-solved-file-directories/#findComment-340914 Share on other sites More sharing options...
Jessica Posted September 3, 2007 Share Posted September 3, 2007 I'd do them alphabetically. Easy to sort them that way. Quote Link to comment https://forums.phpfreaks.com/topic/67825-solved-file-directories/#findComment-340915 Share on other sites More sharing options...
xfusion Posted September 3, 2007 Author Share Posted September 3, 2007 awesome. Thanks for the help guys Quote Link to comment https://forums.phpfreaks.com/topic/67825-solved-file-directories/#findComment-340917 Share on other sites More sharing options...
Fadion Posted September 3, 2007 Share Posted September 3, 2007 Categorizing depends on how u are going to access the files. Anyway i would guess it would be better and faster to organize the different file types in folders and each filetype being categorized in alphabetical sub-folders. In that way u can have a small amount on files in each folder so faster access. Quote Link to comment https://forums.phpfreaks.com/topic/67825-solved-file-directories/#findComment-340918 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.