Re: Performance on large, append-only tables

Поиск
Список
Период
Сортировка
Искать
От
Claudio Freire
Тема
Re: Performance on large, append-only tables
Дата
Msg-id
CAGTBQpYA9vwL1g2LwpK_bDVwHh_t76JV52E2wFJmk2G5qtjTrw@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Performance on large, append-only tables David Yeu <david.yeu@skype.net>
Re: Performance on large, append-only tables Tom Lane <tgl@sss.pgh.pa.us>
Re: Performance on large, append-only tables "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Performance on large, append-only tables Marti Raudsepp <marti@juffo.org>
Re: Performance on large, append-only tables Claudio Freire <klaussfreire@gmail.com>
Re: Performance on large, append-only tables Merlin Moncure <mmoncure@gmail.com>
On Fri, Feb 10, 2012 at 1:45 PM, David Yeu  wrote:
> On Feb 10, 2012, at 11:26 AM, Claudio Freire wrote:
>> That, and an index on "(group_id, created_at) where (deleted_at IS
>> NULL)" to catch the sorted by date kind of query, and you'll be done I
>> think.
>
> Yeah, I didn't quite get that right -- we're actually sorting all these queries by "id DESC", not "created_at DESC", so that seems to obviate the need for any index on created_at.

From your OP:

>  * Š WHERE group_id = ? ORDER BY created_at DESC LIMIT 20;
В списке pgsql-performance по дате отправления
От: David Yeu
Дата:
От: David Yeu
Дата:
FAQ