Re: Large table or many small tables?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jmcgraw(at)databill(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Large table or many small tables?
Date: 2002-03-07 04:33:17
Message-ID: 29592.1015475597@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Joel Mc Graw <jmcgraw(at)databill(dot)com> writes:
> Assuming that the data is exactly the same, I'm wondering if it is
> better to store it in a single large table or many smaller tables.
> Right now I have upwards of 2000 tables, some containing upwards of
> 10,000 records, and each record contains a large amount of text stored
> in a varchar field.

10K records is in the range of "too small to notice". On the other
hand, 2000 tables is probably more files than you want to be holding
open at once, on most Unixen. You would be much better off with one
table having 20M records, I should think.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jean-Michel POURE 2002-03-07 08:16:08 Re: Linux Distributions
Previous Message Chad R. Larson 2002-03-07 04:26:08 Re: Linux Distributions