Release Notes
The release notes section describes the Amazon DocumentDB (with MongoDB compatibility) features, improvements, and bug fixes by release date. With the launch of MongoDB 4.0 compatibility on November 11, 2020, the release notes will include updates for both the Amazon DocumentDB 3.6 and 4.0 engine versions.
You can determine the current Amazon DocumentDB engine version by running the following command:
1. db.runCommand({getEngineVersion: 1})
If your cluster is not on the latest version of the engine, it is likely that you have pending maintenance available that will upgrade your engine. For more information, see Maintaining Amazon DocumentDB.
January 15, 2021
New Features
See all the new features in this blog post.
Amazon DocumentDB 4.0 (Engine Version 2.0.722)
- None
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- Ability to use an index with the
$lookupaggregation stage find()queries with projections can be served direction from an index (covered query)- Ability to use
hint()with thefindAndModify - Performance optimizations for
$addToSetoperator - Improvements to reduce overall index sizes
- New aggregation operators:
$ifNull,$replaceRoot,$setIsSubset,$setInstersection,$setUnion, and$setEquals - Users can also end their own cursors without requiring the
KillCursorrole
November 9, 2020
New Features
See all the new features in this blog post.
Amazon DocumentDB 4.0 (Engine Version 2.0.722)
- MongoDB 4.0 compatibility
- ACID transactions
- Support for
cluster(client.watch()ormongo.watch())and the database level(db.watch())change streams - Ability to start or resume a change streams using
startAtOperationTime - Extend your change stream retention period to 7 days (previously 24 hours)
- AWS DMS target for Amazon DocumentDB 4.0
- CloudWatch metrics:
TransactionsOpen,TransactionsOpenMax,TransactionsAborted,TransactionsStarted, andTransactionsCommitted - New fields for transactions in
currentOp,ServerStatus, andprofiler. - Ability to use an index with the
$lookupaggregation stage find()queries with projections can be served direction from an index (covered query)- Ability to use
hint()with thefindAndModify - Performance optimizations for
$addToSetoperator - Improvements to reduce overall index sizes.
- New aggregation operators:
$ifNull,$replaceRoot,$setIsSubset,$setInstersection,$setUnion, and$setEquals - With the
ListCollectionandListDatabasecommands, you can now optionally use theauthorizedCollectionsandauthorizedDatabasesparameters to allow users to list the collections and databases that they have permission to access without requiring thelistCollectionsandlistDatabaseroles, respectively - Users can also end their own cursors without requiring the
KillCursorrole - Comparing numeric types of subdocuments is now consistent with comparing numeric types of first-level documents. The behavior in Amazon DocumentDB 4.0 is now compatible with MongoDB.
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- None
Bug Fixes and Other Changes
Amazon DocumentDB 4.0 (Engine Version 2.0.722)
$setOnInsertno longer allow updates when using the positional operator$. The behavior in Amazon DocumentDB 4.0 is now compatible with MongoDB.- Fixed issue with
$createCollectionand setautoIndexId - Projection for nested documents
- Changed default setting for working memory to scale with instance memory size
- Garbage collection improvements
- Lookup with empty key in path, behavior difference with mongo
- Fixed
dateToStringbug in timezone behavior - Fixed
$push(aggregation) to respect sort order - Fixed bug in
$currentOpwith aggregate - Fixed issue with
readPreferenceon secondary - Fixed issue with validating
$createIndexis the same database as the command was issued - Fixed inconsistent behavior for
minKey,maxKeylookup fails - Fixed issue with
$sizeoperator not working with composite array - Fixed issue with the negation of
$inwith regex - Fixed issue with
$distinctcommand run against a view - Fixed issue with aggregations and find commands sorting missing fields differently
- Fixed
$eqto regular expression not checking type - Fixed
$currentDatebug in timestamp ordinal position behavior - Fixed millisecond granularity for
$currentDate
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- None
October 30, 2020
New Features
See all the new features in this blog post.
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- Added the ability to open a change stream cursor at the cluster level
(client.watch()ormongo.watch())and the database(db.watch()) - Ability to increase the change stream retention period to 7 days (previously 24 hours)
Bug Fixes and Other Changes
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- Various general case performance improvements
- A targeted security improvement
- Fixed an issue with skip sort on second field of a compound index
- Enable regular index for equality on single field of a multi-key index (not compound)
- Fixed authentication race condition
- Fixed issue that caused an infrequent garbage collection crash
- RBAC security improvement
- Added
databaseConnectionsMaxmetric - Performance improvements for certain workloads on
r5.24xlargeinstances
September 22, 2020
New Features
See all the new features in this blog post.
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
$outaggregation stage- Increased the maximum number of connections and cursor per instance by as much as 10x
Bug Fixes and Other Changes
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- None
July 10, 2020
New Features
See all the new features in this blog post.
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- Cross Region Snapshot Copy
Bug Fixes and Other Changes
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- None
June 30, 2020
New Features
See all the new features in this blog post.
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- T3 medium instances
Bug Fixes and Other Changes
Amazon DocumentDB 3.6 (Engine Version 1.0.206295)
- Idle memory reclamation for t3 instances
- Authentication improvements
- Improved SASL authentication performance
- Fixed
currentOpissue when exceeding maximum possible ops - Fixed
killOpsissue for bulk update and delete - Improvements to
$sampleperformance with$match - Fixed support for
$$in cond case in redact stage - Fixed various recurring crash root causes
- Improvements to TTL sweeping to reduce IOs and latency
- Optimized memory utilization for
$unwind - Fixed collection stats race condition with drop index
- Fixed race condition during concurrent index build
- Fixed infrequent crash in
hash_searchin index
