Re: Abbreviated keys for Numeric

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Abbreviated keys for Numeric
Дата
Msg-id CAM3SWZRre+ryKWDDCuxHyTC-5ZSVqfvbCa1V8GUr=7N1kT2v-w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Abbreviated keys for Numeric  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
On Sat, Feb 21, 2015 at 2:09 PM, Peter Geoghegan <pg@heroku.com> wrote:
> I can recreate the problem you see with text sort regressions.
> Abbreviation is aborted for the case in question, unsurprisingly, and
> fairly far in. With that many tuples, the idea of taking abbreviated
> cardinality as a proxy for full cardinality becomes less important,
> because either way you have to do at least 10 comparisons per item on
> average.

Actually, it's closer to 20 comparisons past 1 million, on average.
See my earlier 0002-* patch comments [1].

[1] http://www.postgresql.org/message-id/attachment/35861/0002-Estimate-total-number-of-rows-to-be-sorted.patch
(search for "20")
-- 
Peter Geoghegan



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Abbreviated keys for Numeric
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Bootstrap DATA is a pita