Re: Multi-key index not beeing used - bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multi-key index not beeing used - bug?
Дата
Msg-id 21283.1159994034@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Multi-key index not beeing used - bug?  (Tobias Brox <tobias@nordicbet.com>)
Ответы Re: Multi-key index not beeing used - bug?  (Tobias Brox <tobias@nordicbet.com>)
Список pgsql-performance
Tobias Brox <tobias@nordicbet.com> writes:
> NBET=> explain select * from account_transaction where users_id=123456 order by created desc, id desc limit 10;

> We have indices on the users_id field and the (users_id, created)-tuple.

Neither of those indexes can provide the sort order the query is asking
for.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: UPDATE becomes mired / win32
Следующее
От: Tobias Brox
Дата:
Сообщение: Re: Multi-key index not beeing used - bug?