-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
select id6, largest2_v3 from
(select id6, v3 as largest2_v3, row_number() over (partition by id6 order by v3 desc) as order_v3
from x
where v3 is not null) sub_query
where order_v3 <= 2Describe the solution you'd like
- Profile / analyze this query
- Improve performance
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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request