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

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

发布说明

发布说明部分按发布日期介绍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
  • 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, $setInstersection, $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 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, and TransactionsCommitted
  • New fields for transactions in currentOp, ServerStatus, 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, $setInstersection, $setUnion, and $setEquals
  • With the ListCollection and ListDatabase commands, you can now optionally use the authorizedCollections and authorizedDatabases 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 $createCollection and set autoIndexId
  • 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() 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 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 killOps 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