-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Improve performance of db-benchmark query 8 #13586
Comments
take |
I didn't profile yet, but one potentially problematic line I found here
This concatenates Changing the |
Hi @Dandandan, I tried profiling the execution of CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -o q8.svg -- -f q8.sql
From the flamegraph, I see that the EDIT: |
That is an interesting finding. Any chance you could share the flamegraph? I think for |
Hm so most of the time indeed seems spent in sort / merge, so I think that has the highest priority. |
I’ve generated another flamegraph using |
I found out that EDIT: I used Compiler Explorer to check what |
I think for single column sorts (like this query), we should be able to avoid converting to
|
Is your feature request related to a problem or challenge?
Query 8 in db-benchmark is slower than other queries
https://github.com/MrPowers/mrpowers-benchmarks
The query is as follows
Describe the solution you'd like
It might be the part
row_number() over (partition by id6 order by v3 desc)
or rather the sorting is the most expensive.`
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: