From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: David Teran <david.teran@cluster9.com>
Cc: Shridhar Daithankar <shridhar_daithankar@myrealbox.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: optimizing Postgres queries
Date: Mon, 05 Jan 2004 23:15:27 +0800
Message-ID: <3FF97F8F.6040305@familyhealth.com.au> (raw)
In-Reply-To: <64C8DBBA-3F77-11D8-A528-000A95A6F0DC@cluster9.com>
References: <4B0023AC-3F72-11D8-B3EB-000A95A6F0DC@cluster9.com>
<200401051705.55120.shridhar_daithankar@myrealbox.com>
<64C8DBBA-3F77-11D8-A528-000A95A6F0DC@cluster9.com>
> explain analyze SELECT --columns-- FROM KEY_VALUE_META_DATA t0 WHERE
> t0.ID_FOREIGN_TABLE = 21110::bigint;
>
> an index is used. Very fine, the performance is about 10 to 100 times
> faster for the single select.
An alternative technique is to do this:
... t0.ID_FOREIGN_TABLE = '21110';
Chris
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-performance@postgresql.org
Cc: chriskl@familyhealth.com.au, david.teran@cluster9.com, shridhar_daithankar@myrealbox.com
Subject: Re: optimizing Postgres queries
In-Reply-To: <3FF97F8F.6040305@familyhealth.com.au>
* 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