Re: analyze causes query planner to choose suboptimal plan for aselect query in separate transaction

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: analyze causes query planner to choose suboptimal plan for aselect query in separate transaction
Дата
Msg-id CAHOFxGrhmb5HA4AUj2M2fgzAC=Wr8CywbuzV-eDuAu-jpi+TUA@mail.gmail.com
обсуждение исходный текст
Ответ на analyze causes query planner to choose suboptimal plan for a selectquery in separate transaction  (Martin Kováčik <kovacik@redbyte.eu>)
Ответы Re: analyze causes query planner to choose suboptimal plan for aselect query in separate transaction  (Martin Kováčik <kovacik@redbyte.eu>)
Список pgsql-general
I assume it is in the documentation, but I am not aware of how stats are handled for uncommitted work. Obviously in the example you provided the table would be empty, but in your real tests do they start out empty? Would it suffice to use temp tables created like the regular ones and analyze after insert to ensure stats are up to date? Or would it make sense to turn off auto-vacuum/analyze during these tests? The workload is not expected to be similar to real world I would think, and so you don't need the vacuum and the stats update perhaps.

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

Предыдущее
От: Martin Kováčik
Дата:
Сообщение: analyze causes query planner to choose suboptimal plan for a selectquery in separate transaction
Следующее
От: Martin Kováčik
Дата:
Сообщение: Re: analyze causes query planner to choose suboptimal plan for aselect query in separate transaction