Not all index scans are equal: How we cut query latency by over 99%
Datadog | The Monitor blog

Not all index scans are equal: How we cut query latency by over 99%


Summary

Datadog engineers optimized a slow PostgreSQL query by replacing an inefficient composite index scan with a targeted index that better matches the query's predicates. This change, which addressed a mismatch in B-tree column order, slashed average query latency from 300 ms to just 38 μs. Additionally, the article highlights how Datadog Database Monitoring can now automatically detect and suggest remedies for similar suboptimal index scans.
Read the Original Article

This article originally appeared on Datadog | The Monitor blog.

Read Full Article on Original Site

Popular from Datadog | The Monitor blog

1
DASH 2026: Guide to Datadog’s newest announcements
DASH 2026: Guide to Datadog’s newest announcements

Datadog | The Monitor blog Jun 9, 2026 258 views

2
DASH 2026 Harnessing AI: Guide to Datadog’s newest announcements
DASH 2026 Harnessing AI: Guide to Datadog’s newest announcements

Datadog | The Monitor blog Jun 9, 2026 211 views

3
Datadog LLM Observability natively supports OpenTelemetry GenAI Semantic Conventions
4
Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog
Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog

Datadog | The Monitor blog Apr 9, 2026 142 views

5
Introducing Bits AI Dev Agent for Code Security
Introducing Bits AI Dev Agent for Code Security

Datadog | The Monitor blog Mar 26, 2026 142 views