From: Greg Stark <gsstark@mit.edu>
To: John Meinel <john@johnmeinel.com>
Cc: Francisco Reyes <lists@natserv.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: why my query is not using index??
Date: 11 Oct 2004 21:13:27 -0400
Message-ID: <87fz4k3fig.fsf@stark.xeocode.com> (raw)
In-Reply-To: <416B217D.9090000@johnmeinel.com>
References: <41639F3C.4050103@siche.net>
<200410111425.02671.vygen@gmx.de>
<20041011163756.M97379@zoraida.natserv.net>
<416B217D.9090000@johnmeinel.com>
John Meinel <john@johnmeinel.com> writes:
> As Janning mentioned, sometimes sequential scans *are* faster. If the number of
> entries that will be found is large compared to the number of total entries (I
> don't know the percentages, but probably >30-40%),
Actually 30%-40% is unrealistic. The traditional rule of thumb for the
break-even point was 10%. In POstgres the actual percentage varies based on
how wide the records are and how correlated the location of the records is
with the index. Usually it's between 5%-10% but it can be even lower than that
sometimes.
--
greg
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: gsstark@mit.edu, john@johnmeinel.com, lists@natserv.com
Subject: Re: why my query is not using index??
In-Reply-To: <87fz4k3fig.fsf@stark.xeocode.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