Docs 菜单
Docs 主页
/
驱动程序
/

Amazon DocumentDB 兼容性

Amazon DocumentDB 声明支持MongoDB v4.0 和MongoDB v5.0。这些版本并不支持MongoDB Atlas上提供的MongoDB版本中的所有较新特性和功能。

提示

MongoDB 版本历史记录

要了解有关 MongoDB 各版本可用功能的更多信息,请参阅 MongoDB Evolved - 版本历史记录

在 Amazon DocumentDB 上,以下 MongoDB 功能仅部分可用或根本不受支持:

  • 功能固定大小集合map-reduce操作GridFS文本索引向量搜索索引部分索引不区分大小写索引时间序列数据按需物化视图客户端字段级加密Queryable Encryption

  • 命令collModcollMod:expireAfterSecondscopydbcreateViewfilemd5reIndexconnPoolStatsdbHashfeaturesgetLastErrorgetPrevErrorparallelCollectionScanresetErrorendSessionskillAllSessionsByPatternrefreshSessions,分片命令(enableShardingshardCollection 除外)

  • 查询运算符$expr$jsonSchema$text$where$meta$box$center$centerSphere$polygon$near$uniqueDocs

  • 聚合操作符$accumulator$count$stdDevPop$stdDevSamp$pow$trunc$round$first$last$switch$binarySize$bsonSize , $dateFromParts, $dateToParts, $dateTrunc, $dateDiff, $ltrim, $rtrim, $trim, $regexFind, $regexFindAll, $regexMatch, $replaceOne, $replaceAll, $isNumber$rand$sampleRate$getField

  • 聚合阶段$collStats$facet$bucket$bucketAuto$sortByCount$unionWith$set$setWindowFields$unset$listLocalSessions$listSessions$graphLookup$merge$planCacheStats

  • 游标方法cursor.collation()cursor.max()cursor.min()cursor.noCursorTimeout()cursor.returnKey()cursor.showRecordId()cursor.tailable()

此外, Amazon DocumentDB 在执行包含以下任何操作符的查询时不利用索引:

  • $ne

  • $nin

  • $nor

  • $not

  • $exists

  • $distinct

  • $elemMatch 用于嵌套查询时

要了解有关 Amazon DocumentDB 与 MongoDB v4.0 和 MongoDB v5.0 兼容性的更多信息,请参阅以下 Amazon Web Services 文档:

MongoDB 不为 Amazon DocumentDB 提供商业支持。如需有关此产品的帮助,请联系 AWS 支持团队

在此页面上