From: Tom Lane <tgl@sss.pgh.pa.us>
To: Arnaud Lesauvage <thewild@freesurf.fr>
Cc: pgsql-performance@postgresql.org
Subject: Re: Poor performance on very simple query ?
Date: Tue, 03 Oct 2006 10:35:13 -0400
Message-ID: <25424.1159886113@sss.pgh.pa.us> (raw)
In-Reply-To: <45224896.7040708@freesurf.fr>
References: <45224896.7040708@freesurf.fr>
Arnaud Lesauvage <thewild@freesurf.fr> writes:
> Seq Scan on table1 (cost=0.00..23.69 rows=10 width=35) (actual
> time=0.023..0.734 rows=7 loops=1)
> Filter: ((gid = 33) OR (gid = 110) OR (gid = 65) OR (gid = 84)
> OR (gid = 92) OR (gid = 94) OR (gid = 13) OR (gid = 7) OR (gid =
> 68) OR (gid = 41))
> Total runtime: 0.801 ms
This will start using the index as soon as the table gets big enough to
make it worthwhile.
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, thewild@freesurf.fr
Subject: Re: Poor performance on very simple query ?
In-Reply-To: <25424.1159886113@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