Re: Performance tunning

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Performance tunning
Дата
Msg-id CAMkU=1xJTxf6Mj9Gc04ceTCrG2rjf9iMbjB4NOUtqC9OzZnsVg@mail.gmail.com
обсуждение исходный текст
Ответ на Performance tunning  (sugnathi hai <suganhai@yahoo.com>)
Список pgsql-performance
On Sat, May 30, 2020 at 3:37 AM sugnathi hai <suganhai@yahoo.com> wrote:
Hi ,

Can you help to tune the below plan


It looks like your query (which you should show us) has something like

  ORDER BY modifieddate LIMIT 100

It thinks it can walk the index in order, then stop once it collects 100 qualifying rows.  But since almost all rows are removed by the join conditions, it ends up walking a large chunk of the index before finding 100 of them which qualify.

You could try forcing it out of this plan by doing:

  ORDER BY modifieddate + interval '0 second' LIMIT 100

 Cheers,

Jeff

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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: Performance tunning
Следующее
От: sugnathi hai
Дата:
Сообщение: Configuration