Re: WIP: Fast GiST index build
От
Alexander Korotkov
Тема
Re: WIP: Fast GiST index build
Дата
Msg-id
BANLkTi=1TL+pH2sxiR7nf3oMFdWAHHgSyA@mail.gmail.com
Ответ на
Re: WIP: Fast GiST index build (Heikki Linnakangas)
Список
Дерево обсуждения
WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST index
build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST index build) Tom Lane <tgl@sss.pgh.pa.us>
Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST index build) Tom Lane <tgl@sss.pgh.pa.us>
Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST
index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST index build) Tom Lane <tgl@sss.pgh.pa.us>
Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST
index build) Robert Haas <robertmhaas@gmail.com>
Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST
index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Optimizing pg_trgm makesign() (was Re: WIP: Fast GiST
index build) Robert Haas <robertmhaas@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Optimizing box_penalty (Re: WIP: Fast GiST index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Robert Haas <robertmhaas@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Robert Haas <robertmhaas@gmail.com>
Re: WIP: Fast GiST index build Oleg Bartunov <oleg@sai.msu.su>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Fast GiST index build - further improvements Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Fast GiST index build - further improvements Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Stefan Keller <sfkeller@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Stefan Keller <sfkeller@gmail.com>
Re: WIP: Fast GiST index build Robert Haas <robertmhaas@gmail.com>
Re: WIP: Fast GiST index build Stefan Keller <sfkeller@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Robert Haas <robertmhaas@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Hot standby and GiST page splits (was Re: WIP: Fast GiST
index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Simon Riggs <simon@2ndQuadrant.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Simon Riggs <simon@2ndQuadrant.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Simon Riggs <simon@2ndQuadrant.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Simon Riggs <simon@2ndQuadrant.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Simon Riggs <simon@2ndQuadrant.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Simon Riggs <simon@2ndQuadrant.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Thom Brown <thom@linux.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Simon Riggs <simon@2ndQuadrant.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Thom Brown <thom@linux.com>
Re: Hot standby and GiST page splits (was Re: WIP: Fast
GiST index build) Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Jesper Krogh <jesper@krogh.cc>
Re: WIP: Fast GiST index build Alexander Korotkov <aekorotkov@gmail.com>
Re: WIP: Fast GiST index build Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
On Mon, Jun 27, 2011 at 6:34 PM, Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> wrote:
The penalty function is called whenever a tuple is routed to the next level down, and the final tree has the same depth with and without the patch, so I would expect the number of penalty calls to be roughly the same. But clearly there's something wrong with that logic; can you explain in layman's terms why the patch adds so many gist penalty calls? And how many calls does it actually add, can you gather some numbers on that? Any ides on how to mitigate that, or do we just have to live with it? Or maybe use some heuristic to use the existing insertion method when the patch is not expected to be helpful?
In short due to parralel routing of many index tuples routing can alter. In fast build algorithm index tuples are accumulating into node buffers. When corresponding node splits we have to repocate index tuples from it. In original algorithm we are relocating node buffers into buffers of new nodes produced by split. Even this requires additional penalty calls.
But for improvement of index quality I modified algorithm. With my modification index tuple of splitted node buffer can be relocated also into other node buffers of same parent. It produces more penalty calls.
I didn't have an estimate yet, but I'm working on it. Unfortunatelly, I haven't any idea about mitigating it except turning off my modification.
Heuristic is possible, but I feel following problems. At first, we need to somehow estimate length of varlena keys. I avoid this estimate in fast algorithm itself just assumed worst case, but I believe we need some more precise for good heuristic. At second, the right decision is strongly depend on concurrent load. When there are no concurrent load (as in my experiments) fraction of tree which fits to effective cache is reasonable for estimating benefit of IO economy. But with high concurrent load part of cache occupied by tree should be considerable smaller than whole effective cache.
With best regards,
Alexander Korotkov.
В списке pgsql-hackers по дате отправления