I'm building an image upload system that is being designed to store 400,000 images.
I'm seeking advice and prior art for how to store a huge number of files on the file system. I'm seeking alternatives to dumping them all in a single directory. :)
All the file names will contain a unique ID corresponding to a database row. So, file names may look like:
123.jpg or 123456.gif
What I've thought of so far is to store files like this:
0/00/000/123.jpg 1/12/123/123456.jpgI've done the math right, this means that each final directory will house ~1000 images, assuming less than 1,000,000 images in the system. I imagine there is a better design, and perhaps an existing module addressing this. However, I don't even know what terms I would use to search for this. All help appreciated!
In reply to Need directory scheme to store 400,000 images by markjugg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |