Home icon

Improve query performance with EXPLAIN plans in Amazon Aurora DSQL

Database Blog



This article explains how to use EXPLAIN plans to diagnose and improve query performance in Amazon Aurora DSQL, a serverless PostgreSQL-compatible distributed database.

  • Aurora DSQL differs from PostgreSQL: primary keys are full covering indexes, compute and storage are physically separated, and filter placement directly impacts data transfer costs
  • Understand the three-layer filter model: Index Conditions (Level 1, most efficient), Storage Filters (Level 2), and Query Processor Filters (Level 3, least efficient)
  • Key scan types: Full Scan (no index), Index Scan (index with base table lookup), and Index Only Scan (all data in index)
  • Common optimization patterns include adding missing indexes, including columns in indexes, using redundant predicates in joins, and restructuring queries with CTEs
  • Use EXPLAIN ANALYZE VERBOSE to measure DPU (Distributed Processing Unit) consumption and validate optimization improvements
  • Practical workflow: diagnose with EXPLAIN, map predicates to filter layers, apply targeted fixes (indexes, INCLUDE columns), and re-run EXPLAIN to confirm

By pushing filters closer to storage and eliminating unnecessary data movement, teams can significantly reduce query latency and DPU costs in Aurora DSQL workloads.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Apr 19
2024
Monitor query plans for Amazon Aurora PostgreSQL
Nov 20
2025
Amazon Aurora DSQL now provides statement-level cost estimates in query plans
Oct 27
2025
Optimize and troubleshoot database performance in Amazon Aurora PostgreSQL by analyzing execution plans using CloudWatch Database Insights
Dec 3
2024
Introducing Amazon Aurora DSQL

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.