Re: Optimizer not using index on 120M row table

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Optimizer not using index on 120M row table
Date: 2003-04-08 04:35:09
Message-ID: 20030407233509.Q31861@flake.decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Apr 08, 2003 at 12:29:00AM -0400, Neil Conway wrote:
> > I know in other RDBMS's it's very useful to
> > have index covering because it eliminates needing to load the base pages
> > into memory at all
>
> Storing visibility information in index entries (in addition to heap
> tuples) doesn't strike me as a good idea: for one thing, an
> UPDATE/DELETE would require touching both heap tuples and any index
> entries that point to them. It would also bloat the size of indexes.

True, though these could require touching the indexes anyway due to the
data changes (or at least I assume so, given how other RDBMS's work). It
might be a useful option to allow; in certain situations this could
provide fairly substantial gains, depending on how fat the index is
compared to the raw data rows.

It might also be worth allowing for a dirty read option if you don't
care about transactions that are in progress.
--
Jim C. Nasby (aka Decibel!) jim(at)nasby(dot)net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-04-08 04:46:27 Re: Optimizer not using index on 120M row table
Previous Message Jim C. Nasby 2003-04-08 04:29:41 Re: Optimizer not using index on 120M row table