Home / Companies / Datadog / Blog / Post Details
Content Deep Dive

Debug PostgreSQL query latency faster with EXPLAIN ANALYZE in Datadog Database Monitoring

Blog post from Datadog

Post Details
Company
Date Published
Author
Austin Bergstrom, Mike Peralta, Jason Petersen
Word Count
811
Language
English
Hacker News Points
-
Summary

Datadog's Database Monitoring now supports the automatic collection of EXPLAIN ANALYZE plans for PostgreSQL, facilitating the troubleshooting of slow queries by providing detailed execution insights and correlating them with APM traces. This feature allows users to detect performance issues, identify root causes, and diagnose specific problems directly within the Datadog platform. It provides an interactive visualization of execution plans, highlighting critical nodes for easier interpretation, especially for users unfamiliar with explain plans or large queries. The tool can help identify discrepancies in estimated versus actual rows, which may indicate stale table statistics necessitating an ANALYZE operation, or reveal if high disk reads are causing latency, suggesting the need for improved caching or additional RAM. By offering these capabilities, Datadog enables a seamless transition from detecting application performance issues to resolving query latency problems, all within a single interface.