From: frbn@efbs-seafrigo.fr
To: pgsql-sql@postgresql.org
Subject: SELECT * FROM t where p or q;
Date: Fri, 16 Nov 2001 14:40:52 +0100
Message-ID: <3BF51764.8BEAC873@efbs-seafrigo.fr> (raw)
hi,
on a +10 millions rec table, a simple select:
SELECT * FROM tab where num = x;
time: 5 secondes
SELECT * FROM tab where num = y;
time: 5 secondes
SELECT * FROM tab WHERE num = x OR num = y;
time: more than 10 mn !!!
num is an integer.
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: frbn@efbs-seafrigo.fr
Subject: Re: SELECT * FROM t where p or q;
In-Reply-To: <3BF51764.8BEAC873@efbs-seafrigo.fr>
* 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