发行说明 - Amazon DocumentDB
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 Amazon Web Services 服务入门

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

发行说明

按发布日期描述 Amazon DocumentDB (MongoDB 兼容性) 功能、改进和错误修复。随着 2020 年 11 月 11 日 MongoDB 4.0 兼容性的推出,发行说明将包括 Amazon DocumentDB 3.6 和 4.0 引擎版本的更新。

您可以通过运行以下命令来确定当前 Amazon DocumentDB 引擎版本:

db.runCommand({getEngineVersion: 1})

如果您的集群不在最新版本的引擎上,则可能您有可能会升级引擎的待处理维护。有关更多信息,请参阅 维护 Amazon DocumentDB

2022 年 1 月 21 日

新功能

Amazon DocumentDB 4.0 (引擎版本 2.0.5706)

  • 现在支持 Amazon DocumentDB Graviton2(r6g.large、r6g.2xlarge、r6g.4xlarge、r6g.8xlarge、r6g.12xlarge、r6g.16xlarge 和 t4g. 中)实例现在受支持

Amazon DocumentDB 3.6(引擎版本 1.0.207781)和 4.0(引擎版本 2.0.5706)

  • 增加了对以下 MongoDB API 的支持

    • $reduce

    • $mergeObjects

    • $geoWithin

    • $geoIntersects

2021 年 10 月 25 日

新功能

Amazon DocumentDB 3.6(引擎版本 1.0.207780)和 4.0(引擎版本 2.0.5704)

  • 增加了对以下 MongoDB API 的支持

    • $literal

    • $map

    • $$ROOT

  • 对该项的支持 GeoSpatial 查询功能。请参阅此博客帖子有关更多详情

  • Support 用户定义的角色进行访问控制。请参阅此博客帖子有关更多详情

  • Amazon DocumentDB JDBC 驱动程序,可通过 BI 工具(如 Tableau)和 SQL Workbench 等查询工具启用连接

错误修复和其他更改

Amazon DocumentDB 3.6(引擎版本 1.0.207780)和 4.0(引擎版本 2.0.5704)

  • 错误修复$natural在明确的情况下正确排序.sort()同时存在$natural

  • 修复了更改直播使用的错误$redact

  • 错误修复$ifNull处理空数组

  • 当删除当前登录用户或取消该用户对持续活动的权限时,资源消耗过多/服务器崩溃的错误修复

  • 错误修复listDatabaselistCollection权限检查

  • Bug 修复多键元素的重复数据删除逻辑

2021 年 6 月 24 日

新功能

Amazon DocumentDB 3.6(引擎版本 1.0.207117)和 4.0(引擎版本 2.0.3371)

2021 年 5 月 4 日

新功能

查看此中的所有新功能博客帖子.

Amazon DocumentDB 3.6(引擎版本 1.0.207117)和 4.0(引擎版本 2.0.3371)

  • renameCollection
  • $zip
  • $indexOfArray
  • $reverseArray
  • $ATURE
  • $提示 support for update
  • Index scan for 区分

错误修复和其他更改

Amazon DocumentDB 3.6(引擎版本 1.0.207117)和 4.0(引擎版本 2.0.3371)

  • Reduced memory usage for $in queries
  • Fixed a memory leak in multikey indexes
  • Fixed the explain plan and profiler output for $out
  • Added a timeout for operations from internal monitoring system to improve reliability
  • Fixed a defect impacting the query predicates passed to multikey indexes

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
  • find () queries with projections can be served direction from an index (covered query)
  • Ability to use 提示 () with the findAndModify
  • Performance optimizations for $addToSet operator
  • Improvements to reduce overall index sizes
  • New aggregation operators: $ifNull, $replaceRoot, $setIsSubset, $setInster部分, $setUnion, and $setEquals
  • Users can also end their own cursors without requiring the killCursor role

2020 年 11 月 9 日

新功能

请参阅中的所有新功能此博客帖子.

Amazon DocumentDB 4.0 (引擎版本 2.0.722)

  • MongoDB 4.0 compatibility
  • ACID transactions
  • Support for 群集(client.watch () or mongo.watch ()) and the database level (db.watch ()) change streams
  • Ability to start or resume a change streams using 开始运行时间
  • Extend your change stream retention period to 7 days (previously 24 hours)
  • Amazon DMS target for Amazon DocumentDB 4.0
  • CloudWatch metrics: 交易打开, 交易 OpenMAX, 交易已中止, 交易已开始, and 已提交的交易
  • New fields for transactions in currentOp, 服务器Status, and profiler.
  • Ability to use an index with the $lookup aggregation stage
  • find () queries with projections can be served direction from an index (covered query)
  • Ability to use 提示 () with the findAndModify
  • Performance optimizations for $addToSet operator
  • Improvements to reduce overall index sizes.
  • New aggregation operators: $ifNull, $replaceRoot, $setIsSubset, $setInster部分, $setUnion, and $setEquals
  • With the ListCollection and listDatabase commands, you can now optionally use the 授权收藏 and 授权的数据库 parameters to allow users to list the collections and databases that they have permission to access without requiring the listCollections and listDatabase roles, respectively
  • Users can also end their own cursors without requiring the killCursor 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 $Create Collection and set 自动索引 ID
  • 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 $reateIndex 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 (客户端 .watch () or mongo.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 数据库连接最大 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 kilOps 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 hash_search in index