Re: ORDER BY, LIMIT and indexes

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: ORDER BY, LIMIT and indexes
Дата
Msg-id CAB7nPqRi=9EUa3PEOoaUggh8MHpHBSEjrghGFjdpH=NQKfEBFQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ORDER BY, LIMIT and indexes  (Claudio Freire <klaussfreire@gmail.com>)
Ответы Re: ORDER BY, LIMIT and indexes
Список pgsql-performance



On Tue, Aug 6, 2013 at 8:25 AM, Claudio Freire <klaussfreire@gmail.com> wrote:
On Mon, Aug 5, 2013 at 8:04 PM, Ivan Voras <ivoras@freebsd.org> wrote:
> SELECT * FROM table ORDER BY id DESC LIMIT 10 OFFSET 10
>
> SELECT * FROM table WHERE active ORDER BY id DESC LIMIT 10 OFFSET 10

Did you try explain?
And did you run ANALYZE on your table to be sure that you generate correct plans?
--
Michael

В списке pgsql-performance по дате отправления: