Posted by Miguel Cruz on 07/27/06 19:54
b007uk@gmail.com wrote:
> Thank you!
> Maybe I won't need to use mysql after all!
> File names are words or frases that may have digits, separated by '-',
> like this: this-is-one-file.txt this-1-is-another.txt and-more.txt
> ill try to change '-' to '/' and save it like that:
> ./t/this/is/one/file.txt
> it should work
> Thank you for the idea again!
If you do this you will have to make a lot of directories all the time.
If the names are pretty unpredictable like that, how about just taking
the md5() of the name and using the first character of that? That way
you get 16 buckets to spread them out over.
miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Navigation:
[Reply to this message]
|