Skip to content

ladybug: use table stats - #13

Merged
prrao87 merged 3 commits into
prrao87:mainfrom
adsharma:ladybug_updates
Sep 3, 2026
Merged

ladybug: use table stats#13
prrao87 merged 3 commits into
prrao87:mainfrom
adsharma:ladybug_updates

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

Using table stats has significant impact on several benchmarks:

 ┌───────┬────────────────┬─────────────────┬─────────┬─────────┐
 │ Query │ Min w/ ANALYZE │ Min w/o ANALYZE │ Speedup │ Benefit │
 ├───────┼────────────────┼─────────────────┼─────────┼─────────┤
 │ Q10   │ 5.87 ms        │ 8.02 ms         │ 1.36x   │ +26.7%  │
 ├───────┼────────────────┼─────────────────┼─────────┼─────────┤
 │ Q28   │ 4.87 ms        │ 6.42 ms         │ 1.32x   │ +24.2%  │
 ├───────┼────────────────┼─────────────────┼─────────┼─────────┤
 │ Q23   │ 4.04 ms        │ 5.26 ms         │ 1.30x   │ +23.1%  │
 ├───────┼────────────────┼─────────────────┼─────────┼─────────┤
 │ Q18   │ 4.62 ms        │ 5.88 ms         │ 1.27x   │ +21.4%  │
 ├───────┼────────────────┼─────────────────┼─────────┼─────────┤
 │ Q14   │ 4.98 ms        │ 6.10 ms         │ 1.23x   │ +18.4%  │
 └───────┴────────────────┴─────────────────┴─────────┴─────────┘

Also close the query result object after use.

@prrao87
prrao87 merged commit 717a95e into prrao87:main Sep 3, 2026
@adsharma
adsharma deleted the ladybug_updates branch September 3, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants