| От | Tom Lane |
|---|---|
| Тема | Re: performance of IN (subquery) |
| Дата | |
| Msg-id | 10223.1093615059@sss.pgh.pa.us обсуждение |
| Ответ на | Re: performance of IN (subquery) (Jon Lapham <lapham@jandr.org>) |
| Список | pgsql-general |
Jon Lapham <lapham@jandr.org> writes:
> Tom Lane wrote:
>> I've thought about this before. One simple trick would be to get rid
>> of the current pg_class reltuples/relpages fields in favor of a
>> tuples-per-page estimate, which could be multiplied by
>> RelationGetNumberOfBlocks() during planning.
> My first reaction is to wonder if this would give performance exactly
> equal to running a true ANALYZE in every situation?
No, this is quite orthogonal to ANALYZE (and several orders of magnitude
cheaper...) It would fix a lot of the simpler cases, though, since the
first-order effects like table size would be right.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера