-
Notifications
You must be signed in to change notification settings - Fork 7
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
Run reindex / vacuum periodically to ensure queries perform well #114
Comments
@1t5j0y Why is this in 'Analysis'? I think you told something, forgot. |
Observing performance pattern / deterioration before deciding on fix and deciding on what should trigger the vacuum. Shouldn't be blocker for 10.2 since we can run vacuum on demand in the meanwhile if required. |
After observing goonj media search performance for a while, suggest not playing this story immediately because:
If there are similar cases in the future, we can address on a case by case basis if there is a support ticket. |
In avniproject/avni-media#179, noticed a drastic improvement for base search queries from media app (queries media and address table) after executing
Analyse:
AC:
Solutioning:
SELECT schemaname, relname, last_autoanalyze, last_analyze FROM pg_stat_all_tables WHERE relname = 'address' and schemaname = 'goonj';
exposes when last analysis happened and can be used in the logic to determine whether vacuum analyse needs to be executed.
Out of scope:
The text was updated successfully, but these errors were encountered: