User-visible latency
Connect slow checkout, booking, search, dashboard, and reporting paths to the database calls behind them.
Performance audit intent
Use a database performance audit when latency, timeouts, CPU pressure, lock waits, or report delays are visible to the business but the database cause is still unclear.
Connect slow checkout, booking, search, dashboard, and reporting paths to the database calls behind them.
Review load patterns, concurrency, waits, memory pressure, temporary work, storage growth, and connection behavior.
Separate expensive SQL, missing index opportunities, stale access patterns, and table growth from infrastructure guesswork.
A database performance audit should not start with a random index or configuration change. It should explain which workload is slow, which database evidence supports the finding, what risk exists, and which optimization step deserves review first.
List the slow workflows, affected users, time windows, and service-level impact.
Use query timing, plans, index usage, wait signals, table size, and capacity metrics.
Prioritize bottlenecks by user impact, change risk, confidence, and operational cost.
Turn findings into human-reviewed query, index, maintenance, schema, or capacity work.
Use the database optimization guide when the audit points to broad query, index, table, and capacity tradeoffs. Use the query optimization path when a small set of SQL statements explains most of the impact.
Start with measurable symptoms: slow transactions, timeout patterns, high database load, query timing, index usage, and capacity pressure.
The audit creates evidence and priorities before changes are made. Optimization uses those findings to plan reviewable improvements.
When the database is PostgreSQL, continue from the broad audit into the PostgreSQL optimization path for engine-specific review.