Log Every Query in Local Development
How to log every SQL statement in local PostgreSQL and MySQL, which settings to use, what it costs, and how to switch it off again safely.
Blog / Tag
How to log every SQL statement in local PostgreSQL and MySQL, which settings to use, what it costs, and how to switch it off again safely.
Read a PostgreSQL EXPLAIN plan node by node, from costs and row estimates to scan and join types, EXPLAIN ANALYZE and BUFFERS, plus MySQL basics.
MySQL ·
Rank MySQL queries by total time with performance_schema and the sys schema, convert picosecond timers to milliseconds, or use the slow query log.