Skip to content
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

Create SOP for updating postgres table statistics #16855

Open
4 of 10 tasks
arnejduranovic opened this issue Dec 19, 2024 · 0 comments
Open
4 of 10 tasks

Create SOP for updating postgres table statistics #16855

arnejduranovic opened this issue Dec 19, 2024 · 0 comments
Labels
DevSecOps Team Aq DevSecOps work label platform Platform Team reportstream

Comments

@arnejduranovic
Copy link
Collaborator

arnejduranovic commented Dec 19, 2024

DevSecOps Issue

Summary

Sometimes, seemingly out of the blue, our queries will start performing poorly (have slow execution times). We have previously determined this is due to our old version of Postgres not running ANALYZE automatically, thus the statistics used by the query planner become out of date and the query planner makes poor decisions on how to execute the query. To resolve this, DevSecOps needs to have a standard operating procedure (SOP) in place to manually run VACUUM ANALYZE on our tables on a monthly basis to ensure our queries are performant.

ATTENTION: We expect this to be a temporary process. Once we update Postgres, the statistics should stay up to date automatically.

Environment

  • Local
  • Dev
  • Stage
  • Prod

Priority

  • Critical - affecting prod systems
  • Major - blocking major functionality, deployment, etc
  • Minor - improvements, bug fixes
  • Nice-to-have - feature request

Blocks the following

N/A

Contact

Team: Platform

Slack Team Channel: prime-reportstream-pipeline

Slack Contact (Full Name): Arnej

Technical Team Lead: Arnej

Definition of Done

  • SOP created and stored in DevSecOps folder in RS Sharepoint (optional)
  • SOP Executed for the month of January

Notes

TODO ARNEJ: Put the tables here

@arnejduranovic arnejduranovic added DevSecOps Team Aq DevSecOps work label platform Platform Team reportstream labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DevSecOps Team Aq DevSecOps work label platform Platform Team reportstream
Projects
None yet
Development

No branches or pull requests

1 participant