| От | mlw |
|---|---|
| Тема | Re: Index Scans become Seq Scans after VACUUM ANALYSE |
| Дата | |
| Msg-id | 3CBDC3FE.9DEFE4F7@mohawksoft.com обсуждение исходный текст |
| Ответ на | Re: Index Scans become Seq Scans after VACUUM ANALYSE (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
Peter Eisentraut wrote: > > mlw writes: > > > Adding huristics, such as weighting for index scans, is not making the planner > > stupider. It is making it smarter and more flexable. > > If life was as simple as index or no index then this might make some > sense. But in general the planner has a whole bunch of choices of join > plans, sorts, scans, and the cost of an individual index scan is hidden > down somewhere in the leaf nodes, so you can't simply say that plans of > type X should be preferred when the cost estimates are close. > No doubt, no one is arguing that it is easy, but as I said in a branch of this discussion, when the planner has multiple choices, and the cost ranges overlapp, the relative numbers are not so meaningful that huristics would not improve the algorithm.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера