J
Jonathan Wood
Greetings,
I'm developing a site that will have many downloadable files. Although I'll
use a database to keep track of everything, I've decided that storing the
actual contents of these files in the database would exceed my maximum
database usage. Therefore, the plan is to use the database to index the
files but store the actual files in a subfolder.
However, it occurs to me that if I end up with possibly thousands of files
in one folder, that the act of having the operating system locating a file
in that folder would be less than optimally efficient.
I've thought about maybe storing all files that begin with A in the A
folder, all files that begin with B in the B folder, and so on. This could
be a pain though if I decide to provide functions to rename these files.
I'm just wondering if anyone else has dealt with something like this, and if
anyone had any suggestions.
Thanks.
Jonathan
I'm developing a site that will have many downloadable files. Although I'll
use a database to keep track of everything, I've decided that storing the
actual contents of these files in the database would exceed my maximum
database usage. Therefore, the plan is to use the database to index the
files but store the actual files in a subfolder.
However, it occurs to me that if I end up with possibly thousands of files
in one folder, that the act of having the operating system locating a file
in that folder would be less than optimally efficient.
I've thought about maybe storing all files that begin with A in the A
folder, all files that begin with B in the B folder, and so on. This could
be a pain though if I decide to provide functions to rename these files.
I'm just wondering if anyone else has dealt with something like this, and if
anyone had any suggestions.
Thanks.
Jonathan