H
heather.fraser
Hello everybody,
I am creating an Image library application with Java which will
store several million files on the file system.
Meta data desribing the images will be stored in a database but
I think it's probably faster if the actual image files are stored
on the file system with a reference stored in the database.
As I understand it, storing all of the files in one single
directory would become slow in look-ups. And so I am thinking
of giving each image a 10-digit number and placing the image
in a directory structure such as this ~
/1/2/3/4/5/6/7/8/9/x.png
For example, if an image is 2749282749.jpg then the image 9.png
will be placed in the subdirectory /2/7/4/9/2/8/2/7/4
Is it really that simple? Are there any caveats that I should
be aware of?
thank you very much,
Heather
I am creating an Image library application with Java which will
store several million files on the file system.
Meta data desribing the images will be stored in a database but
I think it's probably faster if the actual image files are stored
on the file system with a reference stored in the database.
As I understand it, storing all of the files in one single
directory would become slow in look-ups. And so I am thinking
of giving each image a 10-digit number and placing the image
in a directory structure such as this ~
/1/2/3/4/5/6/7/8/9/x.png
For example, if an image is 2749282749.jpg then the image 9.png
will be placed in the subdirectory /2/7/4/9/2/8/2/7/4
Is it really that simple? Are there any caveats that I should
be aware of?
thank you very much,
Heather