Find slow queries in PostgreSQL
Use log_min_duration_statement and pg_stat_statements to find slow PostgreSQL queries, with exact settings, units and what needs a restart.
Practical, checked guides on query performance, PostgreSQL, MySQL and local development, from CodeROG. RSS
Use log_min_duration_statement and pg_stat_statements to find slow PostgreSQL queries, with exact settings, units and what needs a restart.
An N+1 query is one query for a list plus one more per row. Learn how to spot it, three ways to fix it, and when it is harmless.