The OP was worried about a Unix directory not being able to handle the
thousands of jpegs he had.
Oh. Then in UV a type 1 file would be the go (assuming filenames are
longer than 14 characters or perhaps using a mapping file to convert
file ids to something that would spread nicely) these are unix
directories (so you need to use ASSIGN 1 TO SYSTEM(1017) when
reading/writing binary data) but file names longer than 14 characters
cause directories and files within them to be created). eg:
Item ID XXXXXXXXXXXXXXYYY becomes:
directory XXXXXXXXXXXXXX containing file YYY
Item ID XXXXXXXXXXXXXX which is exactly 14 characters becomes:
directory XXXXXXXXXXXXXX containing file ?
If you had to store 1 million files with no more than 1000 per directory
you could map your original file names to:
14 character directory prefix (between 1 and 1000)
File ID within character (between 1 and 1000).
You could do this sort of hashing as many times as you needed to spread
your jpegs into multiple level subdirectories.
Messy too look at in unix, but totally transparent to UV.
Craig
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/