Re: Simple Join

Поиск
Список
Период
Сортировка
От Steinar H. Gunderson
Тема Re: Simple Join
Дата
Msg-id 20051214234736.GA11885@uio.no
обсуждение исходный текст
Ответ на Simple Join  (Kevin Brown <blargity@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Re: Simple Join
Следующее
От: Kevin Brown
Дата:
Сообщение: Re: Simple Join