forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf1ea98a
committed
Reduce non-leaf keys overlap in GiST indexes produced by a sorted build
The GiST sorted build currently chooses split points according to the only pagespace utilization. That may lead to higher non-leaf keys overlap and, in turn,slower search query answers.This commit makes the sorted build use the opclass's picksplit method. Oncefour pages at the level are accumulated, the picksplit method is applied untileach split partition fits the page. Some of our split algorithms could showsignificant performance degradation while processing 4-times more data at once.But those opclasses haven't received the sorted build support and shouldn'treceive it before their split algorithms are improved.Discussion:https://postgr.es/m/CAHqSB9jqtS94e9%3D0vxqQX5dxQA89N95UKyz-%3DA7Y%2B_YJt%2BVW5A%40mail.gmail.comAuthor: Aliaksandr Kalenik, Sergei Shoulbakov, Andrey BorodinReviewed-by: Björn Harrtell, Darafei Praliaskouski, Andres FreundReviewed-by: Alexander Korotkov1 parent42a9e88 commitf1ea98a
File tree
4 files changed
+197
-110
lines changed- contrib/pageinspect/expected
- src
- backend/access/gist
- tools/pgindent
4 files changed
+197
-110
lines changedLines changed: 8 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
44 | 43 |
| |
45 | 44 |
| |
46 | 45 |
| |
| |||
63 | 62 |
| |
64 | 63 |
| |
65 | 64 |
| |
66 |
| - | |
67 |
| - | |
| 65 | + | |
68 | 66 |
| |
69 | 67 |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
414 | 415 |
| |
415 | 416 |
| |
416 | 417 |
| |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
417 | 433 |
| |
418 | 434 |
| |
419 | 435 |
| |
|
0 commit comments
Comments
(0)