Amazon DocumentDB 兼容性
版本信息
Amazon DocumentDB 声明支持MongoDB v4.0 和MongoDB v5.0 。这些版本并不支持 MongoDB Atlas上提供的MongoDB版本中的所有较新特性和功能。
兼容性
在 Amazon DocumentDB 上,以下 MongoDB 功能仅部分可用或根本不受支持:
功能:固定大小集合、 map-reduce操作、 GridFS 、文本索引、向量搜索索引、部分索引、不区分大小写索引、时间序列数据、按需物化视图、客户端字段级加密、可查询加密
命令:
collMod
、collMod:expireAfterSeconds
、copydb
、createView
、filemd5
、reIndex
、connPoolStats
、dbHash
、features
、getLastError
、getPrevError
、parallelCollectionScan
、resetError
、endSessions
、killAllSessionsByPattern
、refreshSessions
,分片命令(enableSharding
和shardCollection
除外)查询运算符:
$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 支持团队。