Re: explain analyze results are different for each iteration
В списке pgsql-sql по дате отправления:
| От | Stephan Szabo |
|---|---|
| Тема | Re: explain analyze results are different for each iteration |
| Дата | |
| Msg-id | 20040914190607.Y35716@megazone.bigpanda.com обсуждение |
| Ответ на | explain analyze results are different for each iteration (Robert Davis <robert@faithwestinc.com>) |
| Список | pgsql-sql |
On Tue, 14 Sep 2004, Robert Davis wrote: > I'm trying to benchmark some complex sql queries. One query, in > particular, is causing problems -- its cost values can vary from 228 > to 907, its Total Runtimes from 60 ms to 5176 ms. The query plans > show that the optimizer is choosing different plans for different > iterations of the same query. Does anyone have any idea what's > going on here or maybe how I can force Postgres to prefer the faster > plan? > > The query plans are very long (11 tables joined) but I can include > them if it might help. Thanks for any advice, 11 tables. You might want to see if raising geqo_threshold stabilizes the plans since IIRC that's the threshold for using the genetic optimizer.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера