Performance issues are encountered when executing the user query #706
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#706
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
OTP
Extra details
No response
Version
No response
PostgreSQL version
14
What were you trying to do?
Performance issues are encountered when executing the following query, which takes a long time (90 seconds and even more) , and stop the Akkoma instance:
$1 = 't'
And I used the EXPLAIN ANALYZE command to analyze the query, and the execution plan is as follows:
From the execution plan, it can be seen that the main cost of the query lies in the hash aggregate operation and the sequential scan operation.
What did you expect to happen?
I hope the performance of this query can be optimized to reduce the query time.
What actually happened?
This query takes over 90 seconds and interrupts the program execution
Logs
Severity
I cannot use the software
Have you searched for this issue?