Re: Use "average field correlation per hard disk page" instead of global one?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use "average field correlation per hard disk page" instead of global one?
Дата
Msg-id 2610.1078895303@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Use "average field correlation per hard disk page" instead of global one?  (Alexey Nalbat <alexey@price.ru>)
Ответы Re: Use "average field correlation per hard disk  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
Alexey Nalbat <alexey@price.ru> writes:
> Due to the updating algorithm the physical order of tuples in the
> table happens to be such that all equal keys are placed together,
> but not ordered globally.

Hmm... this is of course a weak spot of the correlation-based estimation
method.  If you were doing a range query then the computed correlation
might have some bearing on the cost, but when probing for a single key
value, your table will behave much differently than the correlation model
can guess.

> Are there any better ideas?

None at the moment, but I'm open to suggestions.  It seems like we might
need different stats for equality probes than range probes.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Timing of 'SELECT 1'
Следующее
От: Philip Warner
Дата:
Сообщение: Re: Use "average field correlation per hard disk