Re: What is faster? - Mailing list pgsql-sql

From Richard Huxton
Subject Re: What is faster?
Date
Msg-id 42A4616E.8070101@archonet.com
Whole thread Raw
In response to What is faster?  ("ON.KG" <skyer@on.kg>)
Responses Re: What is faster?
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
Next
From: "ON.KG"
Date:
Subject: Re: What is faster?