发布说明
发行说明部分按发行日期介绍 Amazon DocumentDB(与 MongoDB 兼容) 功能、改进和错误修复。随着 2020 年 11 月 11 日 MongoDB 4.0 兼容性的推出,发布说明将包括 Amazon DocumentDB 3.6 和 4.0 引擎版本的更新。
您可以通过运行以下命令来确定当前的 Amazon DocumentDB 引擎版本:
db.runCommand({getEngineVersion: 1})
如果您的集群没有位于最新版本的引擎上,则可能是因为您的系统提供了升级您的引擎的待处理维护。有关更多信息,请参阅 维护 Amazon DocumentDB.
2021 年 1 月 15 日
新功能
请在此博客文章中查看所有新功能。
Amazon DocumentDB 4.0(引擎版本 2.0.722)
- None
Amazon DocumentDB 3.6(引擎版本 1.0.206295)
- Ability to use an index with the
$lookup
aggregation stage 查找 ()
queries with projections can be served direction from an index (covered query)- Ability to use
提示 ()
with thefindAndModify
- Performance optimizations for
$addToSet
operator - Improvements to reduce overall index sizes
- New aggregation operators:
$ifNull
,$replaceRoot
,$setIsSubset
,$集(部分)
,$setUnion
, and$setEquals
- Users can also end their own cursors without requiring the
终止光标
role
2020 年 11 月 9 日
新功能
请在此博客文章中查看所有新功能。
Amazon DocumentDB 4.0(引擎版本 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:
打开的事务
,事务打开最大
,事务已中止
,已启动事务
, and事务已提交
- New fields for transactions in
currentOp
,服务器状态
, andprofiler
. - Ability to use an index with the
$lookup
aggregation stage 查找 ()
queries with projections can be served direction from an index (covered query)- Ability to use
提示 ()
with thefindAndModify
- Performance optimizations for
$addToSet
operator - Improvements to reduce overall index sizes.
- New aggregation operators:
$ifNull
,$replaceRoot
,$setIsSubset
,$集(部分)
,$setUnion
, and$setEquals
- With the
列表集合
and列表数据库
commands, you can now optionally use theauthorizedCollections
andauthorizedDatabases
parameters to allow users to list the collections and databases that they have permission to access without requiring thelistCollections
andlistDatabase
roles, respectively - Users can also end their own cursors without requiring the
终止光标
role - 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(引擎版本 1.0.206295)
- None
错误修复和其他更改
Amazon DocumentDB 4.0(引擎版本 2.0.722)
$setOnInsert
no longer allow updates when using the positional operator$
. The behavior in Amazon DocumentDB 4.0 is now compatible with MongoDB.- Fixed issue with
$创建集合
and 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
dateToString
bug in timezone behavior - Fixed
$push
(aggregation) to respect sort order - Fixed bug in
$currentOp
with aggregate - Fixed issue with
readPreference
on secondary - Fixed issue with validating
$createIndex
is the same database as the command was issued - Fixed inconsistent behavior for
minKey
,maxKey
lookup fails - Fixed issue with
$size
operator not working with composite array - Fixed issue with the negation of
$in
with regex - Fixed issue with
$distinct ($禁用)
command run against a view - Fixed issue with aggregations and find commands sorting missing fields differently
- Fixed
$eq
to regular expression not checking type - Fixed
$currentDate
bug in timestamp ordinal position behavior - Fixed millisecond granularity for
$currentDate
Amazon DocumentDB 3.6(引擎版本 1.0.206295)
- None
2020 年 10 月 30 日
新功能
请在此博客文章中查看所有新功能。
Amazon DocumentDB 3.6(引擎版本 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)
错误修复和其他更改
Amazon DocumentDB 3.6(引擎版本 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
databaseConnectionsMax
metric - Performance improvements for certain workloads on
r5.24xlarge
instances
2020 年 9 月 22 日
新功能
请在此博客文章中查看所有新功能。
Amazon DocumentDB 3.6(引擎版本 1.0.206295)
$out
aggregation stage- Increased the maximum number of connections and cursor per instance by as much as 10x
错误修复和其他更改
Amazon DocumentDB 3.6(引擎版本 1.0.206295)
- None
2020 年 7 月 10 日
新功能
请在此博客文章中查看所有新功能。
Amazon DocumentDB 3.6(引擎版本 1.0.206295)
- Cross Region Snapshot Copy
错误修复和其他更改
Amazon DocumentDB 3.6(引擎版本 1.0.206295)
- None
2020 年 6 月 30 日
新功能
请在此博客文章中查看所有新功能。
Amazon DocumentDB 3.6(引擎版本 1.0.206295)
- T3 medium instances
错误修复和其他更改
Amazon DocumentDB 3.6(引擎版本 1.0.206295)
- Idle memory reclamation for t3 instances
- Authentication improvements
- Improved SASL authentication performance
- Fixed
currentOp
issue when exceeding maximum possible ops - Fixed
终止操作
issue for bulk update and delete - Improvements to
$sample
performance 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
哈希搜索
in index