Tune queries and indexes
Profile slow queries, add indexes, remove N+1 patterns, adjust pooling and add read replicas if needed.
Strengths
- Fixes the cause of slowness for every caller.[2] PostgreSQL: Indexes, Primary, Not yet verified by an editor
- No new infrastructure or consistency rules.
Weaknesses
- Every read still reaches the database.
Choose it when
- Profiling shows inefficient queries or missing indexes.[1] PostgreSQL: Using EXPLAIN, Primary, Not yet verified by an editor
Limitations
- Doesn’t absorb extreme read spikes on a few hot rows.