Re: [PERFORM] Querying with multicolumn index

Поиск
Список
Период
Сортировка
От Eric Jiang
Тема Re: [PERFORM] Querying with multicolumn index
Дата
Msg-id CAOfJSTzOP0-=oZZhq8S2AAk=TrbK1RdUP+=QusCqqcmhGEGfEA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PERFORM] Querying with multicolumn index  (Andreas Joseph Krogh <andreas@visena.com>)
Список pgsql-performance
On Fri, Dec 9, 2016 at 9:56 AM, Andreas Joseph Krogh <andreas@visena.com> wrote:
You should be having this index:
 
create index updates_driver_time_idx ON updates(driver_id, "time" DESC);

I'm not sure I understand the intent of this fix - are you saying that btree indexes only work in a certain direction?

I created this index and the query plans did not change.

--
Eric Jiang, DoubleMap
eric@doublemap.com | www.doublemap.com

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

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: [PERFORM] Querying with multicolumn index
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORM] Querying with multicolumn index