Rationale & Scope
Surface database performance regressions proactively by logging queries exceeding a duration threshold and rolling them up into a weekly digest for the team, instead of relying on ad-hoc complaints.
Concrete Tasks
- Enable Postgres slow query logging above a configurable duration threshold.
- Build a scheduled job aggregating the past week's slow queries by frequency and average duration.
- Deliver the digest report via email/Slack with the top offending query patterns.
Acceptance Criteria
Suggested Branch Name
git checkout -b feat/database-slow-query-digest
Rationale & Scope
Surface database performance regressions proactively by logging queries exceeding a duration threshold and rolling them up into a weekly digest for the team, instead of relying on ad-hoc complaints.
Concrete Tasks
Acceptance Criteria
Suggested Branch Name