Jump to content

[SOLVED] File Directories


xfusion

Recommended Posts

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)?

Link to comment
https://forums.phpfreaks.com/topic/67825-solved-file-directories/
Share on other sites

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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.