-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Sorting by Aggregates is extremely slow #5554
Sorting by Aggregates is extremely slow #5554
Comments
We will need more info to diagnose performance issues.
|
Hello i have the same issue, my request perform in 11seconds (100ms without the order_by)
Here is the generated SQL from analyze :
and the execution plan :
|
Ok thanks to a response on stackoverflow, |
Yes. @nbourdin Thanks for letting us know. For any further users who have slow queries like this. Using indexes on specific columns will usually greatly speed up your queries. |
When querying by an aggregate sum on an array relationship, the performance is abysmal. Any ideas?
The text was updated successfully, but these errors were encountered: