Re: How to get the optimizer to use an index with multiple fields

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to get the optimizer to use an index with multiple fields
Date: 2003-04-28 18:32:44
Message-ID: 20030428133244.K66185@flake.decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Apr 28, 2003 at 01:21:43PM -0500, Jim C. Nasby wrote:
> I tried changing this to an EXISTS and it takes over a minute. So in
> this case, the range of runtimes is ~4 seconds (building the temp table
> takes ~0.25 seconds) to over a minute.

BTW, I forgot to mention that building the temp table only takes 0.25
seconds if I first disable sequential scans. :/
--
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

Browse pgsql-performance by date

  From Date Subject
Next Message scott.marlowe 2003-04-28 19:52:57 Re: How to get the optimizer to use an index with multiple
Previous Message Jim C. Nasby 2003-04-28 18:21:43 How to get the optimizer to use an index with multiple fields