From: Richard Huxton <dev@archonet.com>
To: ON.KG <skyer@on.kg>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: What is faster?
Date: Mon, 06 Jun 2005 15:45:02 +0100
Message-ID: <42A4616E.8070101@archonet.com> (raw)
In-Reply-To: <17434586625.20050606202531@on.kg>
References: <OF070A806E.9AC2F48A-ON65257018.003D07AB-65257018.003DF74B@flextronicssoftware.com>
<42A43791.7030306@archonet.com>
<17434586625.20050606202531@on.kg>
ON.KG wrote:
> Hi All!
>
> What is faster - SLECTion data from one large table (200 000 - 300 000
> records), or SELECTion from a few small tables (example, 2 tables 150
> 000 records each)?
It depends. Are you selecting all records? One record? A few records? If
one or a few, do you have a suitable index on the table(s)? Is the table
clustered? Expected to be cached in RAM?
Do you have a specific problem, or reason to believe you may encounter one?
--
Richard Huxton
Archonet Ltd
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, skyer@on.kg
Subject: Re: What is faster?
In-Reply-To: <42A4616E.8070101@archonet.com>
* 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