How do I analyze slow query logs in PostgreSQL 15 to identify missing indexes in a multi-tenant SaaS database with over fifty gigabytes of data?
Download run
Fan-out diagram
The searches the AI actually ran for this prompt.
SEED QUERY
How do I analyze slow query logs in PostgreSQL 15 to identify missing indexes in a multi-tenant SaaS database with over fifty gigabytes of data?
1 real search · 1 real-search pass
PostgreSQL 15 documentation pg_stat_statements EXPLAIN ANALYZE CREATE INDEX CONCURRENTLY multicolumn indexes extended statisticsGoogle ↗
OBSERVED
Badge and edge weight = share of passes that produced the query. Hover a query for its intent and routing format.
Query classes
Google's semantic query class for every sub-query: what kind of answer each search is after, simulated vs real.
Classifying 1 queries…
Searches and sources
ChatGPT1 real searches · gpt-6
PostgreSQL 15 documentation pg_stat_statements EXPLAIN ANALYZE CREATE INDEX CONCURRENTLY multicolumn indexes extended statistics Google ↗
- PostgreSQL: Documentation: 15: EXPLAIN · postgresql.org
- PostgreSQL: Documentation: 15: CREATE INDEX · postgresql.org
- PostgreSQL: Documentation: 15: 14.2. Statistics Used by the Planner · postgresql.org