mirror of
https://github.com/neondatabase/neon.git
synced 2026-09-07 05:49:02 +00:00
Start with minimal prefetch distance to minimize prefetch overhead for exact or limited index scans (#10359)
## Problem See https://neondb.slack.com/archives/C04DGM6SMTM/p1736526089437179 In case of queries index scan with LIMIT clause, multiple backends can concurrently send larger number of duplicated prefetch requests which are not stored in LFC and so actually do useless job. Current implementation of index prefetch starts with maximal prefetch distance (10 by default now) when there are no key bounds, so in queries with LIMIT clause like `select * from T order by pk limit 1` compute can send a lot of useless prefetch requests to page server. ## Summary of changes Always start with minimal prefetch distance even if there are not key boundaries. Related Postgres PRs: https://github.com/neondatabase/postgres/pull/552 https://github.com/neondatabase/postgres/pull/551 https://github.com/neondatabase/postgres/pull/550 https://github.com/neondatabase/postgres/pull/549 Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
This commit is contained in:
co-authored by
Konstantin Knizhnik
parent
b31ed0acd1
commit
ceacc29609
Vendored
+1
-1
Submodule vendor/postgres-v14 updated: c2f65b3201...210a0ba3af
Vendored
+1
-1
Submodule vendor/postgres-v15 updated: f262d631ad...d3141e17a7
Vendored
+1
-1
Submodule vendor/postgres-v16 updated: 97f9fde349...f63b141cfb
Vendored
+1
-1
Submodule vendor/postgres-v17 updated: 7e3f3974bc...9c9e9a78a9
Vendored
+4
-4
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"v17": [
|
||||
"17.2",
|
||||
"7e3f3974bc8895938308f94d0e96879ffae638cd"
|
||||
"9c9e9a78a93aebec2f6a2f54644442d35ffa245c"
|
||||
],
|
||||
"v16": [
|
||||
"16.6",
|
||||
"97f9fde349c6de6d573f5ce96db07eca60ce6185"
|
||||
"f63b141cfb0c813725a6b2574049565bff643018"
|
||||
],
|
||||
"v15": [
|
||||
"15.10",
|
||||
"f262d631ad477a1819e84a183e5a7ef561830085"
|
||||
"d3141e17a7155e3d07c8deba4a10c748a29ba1e6"
|
||||
],
|
||||
"v14": [
|
||||
"14.15",
|
||||
"c2f65b3201591e02ce45b66731392f98d3388e73"
|
||||
"210a0ba3afd8134ea910b203f274b165bd4f05d7"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user