Amazon DocumentDB (mit MongoDB-Kompatibilität) bietet Unterstützung für 46 neue MongoDB-Operatoren in Version 8.0.1
Amazon DocumentDB (mit MongoDB-Kompatibilität) unterstützt ab der Nebenversion 8.0.1 jetzt 46 zusätzliche MongoDB-Aggregationsoperatoren und Cursormethoden. Diese Version erweitert die Abfrage-API-Kompatibilität erheblich und erleichtert die Migration von MongoDB-Workloads auf Amazon DocumentDB ohne Änderungen am Anwendungscode.
Die neuen Funktionen umfassen sieben Kategorien:
-
Akkumulatoren (13): $top, $topN, $bottom, $bottomN, $firstN, $lastN, $maxN, $minN, $count, $median, $percentile, $stdDevPop, $stdDevSamp
-
Trigonometrie (15): $sin, $cos, $tan, $asin, $acos, $atan, $atan2, $sinh, $cosh, $tanh, $asinh, $acosh, $atanh, $degreesToRadians, $radiansToDegrees
-
Bitweise Aggregation (4): $bitAnd, $bitOr, $bitXor, $bitNot
-
Arithmetik (3): $round, $trunc, $sigmoid
-
Datengröße und -typ (4): $binarySize, $bsonSize, $isNumber, $toUUID
-
Zeitstempel (2): $tsIncrement, $tsSecond
-
Stufen und andere (5): $sortByCount, $listSearchIndexes, $sampleRate, cursor.min(), cursor.max()
Diese Operatoren sind ab Amazon DocumentDB 8.0.1 in allen Regionen verfügbar, in denen Amazon DocumentDB verfügbar ist. Weitere Informationen finden Sie unter Unterstützte MongoDB-APIs, -Operationen und -Datentypen sowie in den Amazon DocumentDB-Versionshinweisen.