Amazon DocumentDB 兼容性

Amazon DocumentDB (与MongoDB兼容) 是一款快速、可靠且完全托管的数据库服务。Amazon DocumentDB 可以轻松地在云中设置、操作和扩展 MongoDB 兼容数据库。使用 Amazon DocumentDB,您可以运行与 MongoDB 相同的应用程序代码,并使用相同的驱动程序和工具。
版本信息
Amazon DocumentDB 支持 MongoDB v4.0 和 MongoDB v5.0。这些版本不支持在 MongoDB Atlas 上可用的 MongoDB 版本的全部新特性和功能。
兼容性
截至2023年11月,Amazon DocumentDB与MongoDB API的兼容性约为34%。
在Amazon DocumentDB上,以下MongoDB功能仅以有限能力提供或完全不支持
命令:
collMod
、createView
、filemd5
、reIndex
、connPoolStats
、dbHash
、features
、分片命令(除enableSharding
和shardCollection
外)查询操作符:
$expr
、$text
、$where
、$meta
、$box
、$center
、$centerSphere
、$polygon
、$near
聚合运算符:
$accumulator
,$count
,$ceil
,$exp
,$floor
,$ln
,$log
,$log10
,$pow
,$sqrt
,$trunc
,$round
,$first
,$last
,$switch
,$binarySize
,$bsonSize
,$dateFromParts
,$dateToParts
,$dateTrunc
,$dateDiff
,$setDifference
,$anyElementTrue
,$allElementsTrue
,$ltrim
,$rtrim
,$trim
,$regexFind
,$regexFindAll
,$regexMatch
,$replaceOne
,$replaceAll
,$convert
,$toBool
,$toDate
,$toDecimal
,$toDouble
,$toInt
,$toLong
,$toObjectId
,$toString
,$isNumber
,$rand
,$sampleRate
,$getField
聚合阶段:
$collStats
,$facet
,$bucket
,$bucketAuto
,$sortByCount
,$listLocalSessions
,$listSessions
,$graphLookup
此外,当执行包含以下运算符之一的查询时,Amazon DocumentDB 不利用索引
$ne
$nin
$nor
$not
$exists
$elemMatch
有关 Amazon DocumentDB 与 MongoDB v4.0 和 MongoDB v5.0 兼容性的更多信息,请参阅以下 AWS 文档
有关 Amazon DocumentDB 与 MongoDB 之间的最新兼容性状态,请参阅Amazon DocumentDB 是否与 MongoDB Atlas 兼容?网站。
支持
MongoDB 不提供 Amazon DocumentDB 的商业支持。如需获取此产品的帮助,请联系 AWS 支持。