-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Optimize owned row #3999
Optimize owned row #3999
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting this PR. It looks good beside the minor comment about the target repository for pulling in diesel-async
for the benchmark runs.
diesel_bench/Cargo.toml
Outdated
@@ -75,5 +75,5 @@ codegen-units = 1 | |||
|
|||
[patch.crates-io] | |||
quaint = { git = "https://github.com/prisma/prisma-engines", branch = "main" } | |||
diesel-async = { git = "https://github.com/weiznich/diesel_async", branch = "main" } | |||
diesel-async = { git = "https://github.com/wattsense/diesel_async", branch = "sync_wrapper_use_cache" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this back to the original repo + the master branch? I will take care to merge both PR's at the same time to not break the benchmarking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I just removed all Cargo.toml changes.
This speeds up the benchmarks that loads 10.000 rows by 20-30%
b47c3fc
to
b0fbe29
Compare
I just wanted to leave a note here that I have not forgot about this PR. I'm currently working on fixing the CI system issues. I will merge this PR after #4008 landed. |
This PR optimizes owned row caching and is based on changes @weiznich did to cache column names and add required benchmarks.
See weiznich/diesel_async#146 (comment)