PostgreSQL Vacuum, Index Bloat, and Sharding Hot Partitions on AWS
Quick summary: Autovacuum cannot keep up after Black Friday bulk deletes—and your BRIN index is not helping point lookups. Vacuum strategy on Aurora, plus Aurora Limitless and DynamoDB hot key mitigation.
Key Takeaways
- Vacuum strategy on Aurora, plus Aurora Limitless and DynamoDB hot key mitigation
- Aurora PostgreSQL (June 2026) still needs VACUUM—storage is auto-growing but dead tuple bloat hurts index efficiency and planner stats
- What to do this week 1
- 2
- 3
Table of Contents
Aurora PostgreSQL (June 2026) still needs VACUUM—storage is auto-growing but dead tuple bloat hurts index efficiency and planner stats.
Index bloat
Heavy UPDATE/DELETE leaves dead tuples; autovacuum reclaims space. Tune autovacuum_vacuum_scale_factor on large tables; watch n_dead_tup in pg_stat_user_tables.
Sharding and hot partitions
| Service | Hot spot pattern | Mitigation |
|---|---|---|
| DynamoDB | Single partition key | Write sharding suffix, random salt, or DAX |
| Aurora Limitless | Shard router hotspots | Shard key cardinality review |
| RDS single writer | N/A | Read replicas + cache |
Opinionated take: Shard SQL only after Aurora Limitless or proven partition strategy—avoid premature micro-shard ops burden.
What to do this week
- Alert on
MaximumUsedTransactionIDsand autovacuum lag. REINDEX CONCURRENTLYon top bloated index after measurement.- For DynamoDB throttling, enable CloudWatch
ThrottledRequestsper table.
What this guide doesn’t cover
Full Limitless migration—see Aurora Limitless blog if published.
AWS Cloud Architect & AI Expert
AWS-certified cloud architect and AI expert with deep expertise in cloud migrations, cost optimization, and generative AI on AWS.