Re: Query performance issue

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Query performance issue
Дата
Msg-id CAHOFxGo-YY-0RMzEx=JzNiu_M6fqpd1TskWDLGZ8xvfFEu813A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Query performance issue  (Nagaraj Raj <nagaraj.sf@yahoo.com>)
Ответы Re: Query performance issue  (Michael Lewis <mlewis@entrata.com>)
Re: Query performance issue  (Nagaraj Raj <nagaraj.sf@yahoo.com>)
Список pgsql-performance
CREATE INDEX receiving_item_delivered_received ON receiving_item_delivered_received USING btree ( eventtype, replenishmenttype, serial_no, eventtime DESC );

More work_mem as Tomas suggests, but also, the above index should find the candidate rows by the first two keys, and then be able to skip the sort by reading just that portion of the index that matches

eventtype='LineItemdetailsReceived'
and replenishmenttype = 'DC2SWARRANTY'

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Query performance issue
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: Query performance issue