Jeff Abrahamson on 10 Feb 2006 04:09:15 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Is there a limit to the amount of files in a directory before it starts causing trouble?


On Thu, Feb 09, 2006 at 03:17:30PM -0800, Marc Zucchelli wrote:
> When someone uploads a picture, the pictures ALL get
> saved in the same directory.  It just occured to me,
> what if theres 10's of millions of images sitting in
> one directory, or even 10's of thousands.

Will's comments sound reasonable.  If you choose to deal with it at a
code level rather than at a file system level, however, a simple
solution is to store the images as blobs in your database (or in a
separate image database).  Databases are designed to do these sorts of
things, although file systems have certainly gained more database-like
features bit in the last decade.

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>    +1 215/837-2287
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug