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

Re: OT: file system versus databases



On Tue, Feb 24, 2009 at 07:39:01PM -0800, David Fox wrote:

> Are there a lot of files in each directory, or are there a lot of directories?
> 
> One thing I can think off the top of my head when
> organizing/retrieving data this way (other than using an rDBMS) is
> that the directory read function doesn't scale very well, especially
> when doing something like ls over a large directory of mail.

This was correct for older file systems. ReiserFS, ext3 (w/dir_index)
and others have changed that.

If you actually need to read all of them to get some data then yes, it
miht be ineffective.

But as I have no idea about the system involved, I woun't claim it is
ineffective.

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: