| От | Tom Lane |
|---|---|
| Тема | Re: Delete query takes exorbitant amount of time |
| Дата | |
| Msg-id | 3340.1112117509@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Delete query takes exorbitant amount of time (Simon Riggs <simon@2ndquadrant.com>) |
| Ответы |
Re: Delete query takes exorbitant amount of time
|
| Список | pgsql-performance |
Simon Riggs <simon@2ndquadrant.com> writes:
> That implies to me that LIMIT queries are not considered correctly in
> the M&L formula and thus we are more likely to calculate a too-high cost
> for using an index in those circumstances....and thus more likely to
> SeqScan for medium sized relations?
You misunderstand how LIMIT is handled. The plan structure is
LIMIT ...
regular plan ...
and so the strategy is to plan and cost the regular plan as though it
would be carried out in full, and then take an appropriate fraction
of that at the LIMIT stage.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера