From: | Ron Peterson <rpeterson(at)yellowbank(dot)com> |
---|---|
To: | Jurgen Defurne <defurnj(at)glo(dot)be> |
Cc: | postgreSQL general mailing list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Re: Speed of locating tables |
Date: | 2000-06-01 13:49:56 |
Message-ID: | 39366A04.44D9136@yellowbank.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Jurgen Defurne wrote:
>
> carl garland wrote:
>
> > > Don't even think about 100000 separate tables in a database :-(. It's
> > >not so much that PG's own datastructures wouldn't cope, as that very
> > >few Unix filesystems can cope with 100000 files in a directory. You'd
> > >be killed on directory search times.
> > I understand the concern for directory search times but what if your
> > partition for the db files is under XFS or some other journaling fs that
> > allows for very quick search times on large directories. I also
> > saw that there may be concern over PGs own datastructures in that the
> > master tables that hold the table and index tables requires a seq
> > search for locating the tables. Why support a large # of tables in PG
> > if after a certain limit causes severe performance concerns. What if
> > your data model requires more 1,000,000 tables?
> >
>
> If the implementation is like above, there is much less concern with directory
> search times, although a directory might get fragmented and be spread out
> across the disk (with 1000000+ tables it will be fragmented).
If the filesystem uses block allocation. If the filesystem uses
extent-based allocation this wouldn't be a concern.
(I'm no expert on filesystems. Moshe Bar just happened to write an
article on filesystems in this month's Byte - www.byte.com)
> ... With the directory search above
> deleted, you still have to search your inode table.
Which could be enormous. Yuck.
Are there clever ways of managing huge numbers of inodes?
-Ron-
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Landis | 2000-06-01 16:11:59 | ALTERING A TABLE |
Previous Message | Ed Loehr | 2000-06-01 13:49:28 | Re: PostgreSQL capabilities |