Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.