in reply to is it possible to have too many files
It depends on the file system. If possible, you may want to break it down into a couple of directory levels.
Let's assume that your key column is a 4 digit number (0000-9999) - if you store 100 files in a directory, you would store the files for key 1200-1299 in 1/12/$key.
Update: It is possible that the file system is already a database (IIRC, BeOS had something like this), in which case, you may not have a problem with a large directory. I think that this is typically not the case.
Update 2: See also Re: Efficient processing of large directory, another node that references qmail's use of multi-level directories for its queuing system, and the reasoning behind it.
Update 3: Fixed big-oh of calculations. Thanks JavaFan.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: is it possible to have too many files
by JavaFan (Canon) on Jan 21, 2011 at 15:57 UTC | |
by MidLifeXis (Monsignor) on Jan 21, 2011 at 16:17 UTC |