-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Benchmark Prepared statement and expected Improvement #17449
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17449 +/- ##
==========================================
- Coverage 67.67% 67.66% -0.01%
==========================================
Files 1583 1584 +1
Lines 254363 254360 -3
==========================================
- Hits 172140 172118 -22
- Misses 82223 82242 +19 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Harshit Gangal <[email protected]>
6eba850
to
e749db8
Compare
7ff72d5
to
8c74592
Compare
Signed-off-by: Harshit Gangal <[email protected]>
8c74592
to
b948875
Compare
A follow-up PR will include the implementation and final performance improvement results. Temporary changes from this commit were used to evaluate the potential improvement. |
Description
Added a benchmark test for prepared statements covering insert, select, update, and delete operations. Utilized this test to analyze heap allocations, revealing that approximately 20% of allocations are consumed in generating a query plan, which can be avoided during prepared statement execution.
Implemented an optimization to bypass query parsing and normalization for already-prepared statements. Benchmark results demonstrated significant query execution performance gains:
The overall geometric mean improvement in query execution across all operations was 4.94%, with potential for further gains as query size increases.
Related Issue(s)
Checklist