Re: B-Tree support function number 3 (strxfrm() optimization)
| От | Peter Geoghegan |
|---|---|
| Тема | Re: B-Tree support function number 3 (strxfrm() optimization) |
| Дата | |
| Msg-id | CAM3SWZRw=f9UXnh0TFya=4kK39mm1qHUGxgTcAG9H2d-wF9cgw@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: B-Tree support function number 3 (strxfrm() optimization) (Peter Geoghegan <pg@heroku.com>) |
| Ответы |
Re: B-Tree support function number 3 (strxfrm() optimization)
|
| Список | pgsql-hackers |
On Sat, Oct 11, 2014 at 6:34 PM, Peter Geoghegan <pg@heroku.com> wrote: > Attached patch, when applied, accelerates all tuplesort cases using > abbreviated keys, building on previous work here, as well as the patch > posted to that other thread. I attach an updated patch set, rebased on top of the master branch's tip. All relevant tuplesort cases (B-Tree, MinimalTuple, CLUSTER) are now directly covered by the patch set, since there is now general sortsupport support for those cases in the master branch -- no need to apply some other patch from some other thread. For the convenience of reviewers, this new revision includes a new approach to making my improvements cumulative: A second commit adds tuple count estimation. This hint, passed along to the text opclass's convert routine, is taken from the optimizer's own estimate, or the relcache's reltuples, depending on the tuplesort case being accelerated. As in previous revisions, the idea is to give the opclass a sense of proportion about how far along it is, to be weighed in deciding whether or not to abort abbreviation. One potentially controversial aspect of that is how the text opclass abbreviation cost model/abort early stuff weighs simply having many tuples - past a certain point, it *always* proceeds with abbreviation, not matter what the cardinality of abbreviated keys so far is. For that reason it particular, it seemed to make sense to split these parts out into a second commit. I hope that we can finish up all 9.5 work on accelerated sorting soon. -- Peter Geoghegan
Вложения
В списке pgsql-hackers по дате отправления: