Repository navigation
perf: migrate to unnest (from VALUES) for CTEs, INSERT .. SELECT FROM, SELECT/UPDATE FROM - #2003
Merged
Merged
Conversation
jkaczman
force-pushed
the
jk-subqueries-repl-values-w-unnest
branch
from
November 9, 2026 21:34
b31ce78 to
3b31f94
Compare
Contributor
|
Metal bench (arm64) failed. 1 of 475 measures outside bounds.
Counters per txn
Microbench: 461 of 462 measures within bounds. Hot code per txn
pooler:
sharding-w2:
Logslb, microbench, pooler, sharding-w2, sharding-w8, verdict.json |
Contributor
|
Metal bench (x86) passed. All 475 measures within bounds.
Counters per txn
Microbench: all 462 measures within bounds. Microbench latency: 1 benches changed more than 3%
Hot code per txn
pooler:
sharding-w2:
Logslb, microbench, pooler, sharding-w2, sharding-w8, verdict.json |
jkaczman
force-pushed
the
jk-subqueries-repl-values-w-unnest
branch
4 times, most recently
from
November 9, 2026 22:01
a7a706c to
422f97c
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
jkaczman
force-pushed
the
jk-subqueries-repl-values-w-unnest
branch
3 times, most recently
from
November 10, 2026 00:31
f3aac4a to
dc61d2e
Compare
jkaczman
force-pushed
the
jk-subqueries-repl-values-w-unnest
branch
from
November 10, 2026 02:12
dc61d2e to
1524789
Compare
jkaczman
marked this pull request as ready for review
November 10, 2026 03:20
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Works off the previous changes implementing splitting INSERT with unnest (#1988, #2000) to now implement this unnest functionality to be used when re-writing subqueries (as opposed to re-writing the SQL to have an explicit VALUES clause with all the DataRows inlined) when we send the subquery data rows back to Postgres in the outer statement to be evaluated.
This should be a considerable speedup vs. before; if we had 10,000 DataRows returned, it's much cheaper to include the data in an array in a Bind parameter vs. creating a new SQL statement with 10,000 tuples and deparsing it.
Not handled for WHERE clause yet. Will follow up.