Re: The usual sequential scan, but with LIMIT !

Поиск
Список
Период
Сортировка
От Pierre-Frédéric Caillaud
Тема Re: The usual sequential scan, but with LIMIT !
Дата
Msg-id opsdynxsrqcq72hf@musicbox
обсуждение исходный текст
Ответ на Re: The usual sequential scan, but with LIMIT !  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: The usual sequential scan, but with LIMIT !
Список pgsql-performance
    Yes, you're right as usual.
    I had not thought about playing with ORDER BY on a field which has only
one value in the result set.


> If you write it as
>     SELECT WHERE topic_id=2 ORDER BY topic_id DESC,id DESC.
> then an index on (topic_id, id) will work fine.  The mixed ASC/DESC
> ordering is not compatible with the index.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [ADMIN] TOAST tables, cannot truncate
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: The usual sequential scan, but with LIMIT !