- Newest
- Most votes
- Most comments
In Amazon DocumentDB 5.0, when you delete data, the overall allocated space decreases by a comparable amount, which can reduce your storage charges. This applies not only to dropping collections and indexes but also to deleting individual documents within a collection.
Your planned approach is a good strategy to reduce billed storage:
- Creating a cluster from a snapshot of your 3.6 version
- Performing an in-place upgrade to version 5.0
- Removing unused data (including individual documents)
This will indeed reduce your billed storage in version 5.0, unlike in version 3.6 where the cluster volume never decreases in size even when you free up space by deleting data. In version 3.6, the freed space is only reused but doesn't reduce the overall storage allocation.
Additionally, if you're looking to further optimize storage costs in DocumentDB 5.0, you might want to consider:
- Enabling document compression, which uses the LZ4 algorithm to compress documents and can lower storage and I/O costs
- Choosing the appropriate storage configuration (standard or I/O-optimized) based on your workload characteristics
For development and test scenarios, remember you can also stop clusters when not in use to optimize costs.
Sources
Amazon DocumentDB: how it works - Amazon DocumentDB
Managing collection-level document compression - Amazon DocumentDB
Amazon DocumentDB in-place major version upgrade - Amazon DocumentDB
Amazon DocumentDB cluster storage configurations - Amazon DocumentDB
Best practices for Amazon DocumentDB - Amazon DocumentDB
Relevant content
asked 5 years ago
