From: Tom Lane <tgl@sss.pgh.pa.us>
To: jmcgraw@databill.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Large table or many small tables?
Date: Wed, 06 Mar 2002 23:33:17 -0500
Message-ID: <29592.1015475597@sss.pgh.pa.us> (raw)
In-Reply-To: <TradeClient.0.9.0.FreeBSD-4.2-RELEASE.020306141929C.69148@jmcgraw.databill.com>
References: <TradeClient.0.9.0.FreeBSD-4.2-RELEASE.020306141929C.69148@jmcgraw.databill.com>
Joel Mc Graw <jmcgraw@databill.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jmcgraw@databill.com
Subject: Re: Large table or many small tables?
In-Reply-To: <29592.1015475597@sss.pgh.pa.us>
References: <TradeClient.0.9.0.FreeBSD-4.2-RELEASE.020306141929C.69148@jmcgraw.databill.com> <29592.1015475597@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox