You are here: Re: 1 - 2 millions files in one folder? « PHP Programming Language « IT news, forums, messages
Re: 1 - 2 millions files in one folder?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация