Re: Simple Join - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: Simple Join
Date
Msg-id 20051214234736.GA11885@uio.no
Whole thread Raw
In response to Simple Join  (Kevin Brown <blargity@gmail.com>)
List pgsql-performance
On Wed, Dec 14, 2005 at 04:03:52PM -0600, Kevin Brown wrote:
>          ->  Index Scan using paid_index on ordered_products
> (cost=0.00..4954.79 rows=21759 width=16) (actual time=136.472..5966.275
> rows=18042 loops=1)
>                Index Cond: (paid = true)
>                Filter: (paid AND (NOT suspended_sub))
>  Total runtime: 25136.190 ms

You might want to consider an index on (paid,suspended_sub), not just (paid);
it's probably not going to give you any dramatic improvements, but it could
help a bit.

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: Simple Join
Next
From: Kevin Brown
Date:
Subject: Re: Simple Join