Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Versions

Updated on 2025-01-20 GMT+08:00

This section describes the compatibility between DDS versions and MongoDB, aggregation operation compatibility, and DDS features of different versions.

MongoDB-Compatible Features

Table 1 MongoDB-compatible features

Category

Details

DDS 4.0

DDS 4.2

DDS 4.4

DDS 5.0

Community Edition

MongoDB 4.2

Community Edition

MongoDB 4.4

Community Edition MongoDB

5.0

Database commands

The find command supports the allowDiskUse field, which allows MongoDB to use temporary files on disk to store data exceeding the system memory limit while processing a non-index sort operation.

×

×

×

New syntax and usage of projection.

  • In projection, syntax of aggregation functions is supported, for example, using aggregation operators.
  • In projection, data is encoded in JSON format and nested to map specified fields.
  • In projection, the $ character can be used to specify a specific index subelement for a mapped array element.

×

×

×

Time series collections

Time series collections are supported.

×

×

×

×

×

Geospatial indexes can be created for metaField.

×

×

×

×

×

Constrained update and deletion operations are supported.

×

×

×

×

×

Sharded time series collections are supported.

×

×

×

×

×

×

×

Time series collections can be compressed.

×

×

×

×

×

Distributed transactions

Distributed transactions are supported. Distributed transactions refer to multi-document transactions on sharded clusters and replica sets. Multi-document transactions (whether on sharded clusters or replica sets) are also known as distributed transactions starting in MongoDB 4.2.

×

The 16 MB total size limit for a transaction was removed.

×

×

The MongoDB drivers must be updated for MongoDB 4.2.

×

Aggregation

  • The aggregation capability is improved. Data can be updated in the aggregation pipeline.
  • Added $merge.
  • Added $accumulator and $function.
  • Supported union All.
  • Added $unionWith.
  • For details about aggregation operations, see Table 2.

Wildcard indexes

Wildcard indexes are supported.

Sharded cluster

A document's shard key field value can be changed.

×

×

The fields associated with the shard key can be adjusted.

×

Collections can be sharded using a composite shard key that consists of a single hash field.

×

×

×

The 512-byte size limit on a shard key was removed.

×

×

Multi-document transactions allow the creation of indexes and collections (non-distributed transactions).

×

×

×

The $lookup and $graphLookup operation supports sharded collections.

×

×

×

×

Indexes

The size limit on indexes was removed.

The length limit on index names was removed.

Composite indexes can contain hash indexes.

×

×

×

Hidden indexes are supported for commissioning.

×

The size limit on collection namespaces is changed.

The length of <database>.<collection> is increased from 120 bytes to 255 bytes.

Other optimized features

Default Read and Write Concern

Global default read/write concerns, involving connection and command read/write contexts.

×

×

×

×

Jumbo chunks can be migrated.

×

×

×

×

Hedge query is supported.

×

×

×

×

The dds mongos node supports JavaScripts to support some special aggregation operators.

×

×

×

×

In non-multi-document transactions, some read operations support read concern snapshot.

×

×

×

×

×

×

Using collMod to change the timeout interval of TTL indexes of a single field is supported.

×

×

×

×

×

NOTE:

Aggregation Operations

Table 2 Aggregation operations

Operator

DDS 4.0

DDS 4.2

DDS 4.4

DDS 5.0

MongoDB 4.2 Community Edition

MongoDB 4.4 Community Edition

MongoDB 5.0 Community Edition

$sin

$cos

$tan

$asin

$acos

$atan

$atan2

$asinh

$acosh

$atanh

$degreesToRadians

$radiansToDegrees

$round

$trunc

$regexFind

$regexFindAll

$regexMatch

$merge

$planCacheStats

×

×

×

×

×

$replaceWith

$set

$unset

NOW

CLUSTER_TIME

findAndModify

×

update

$accumulator

×

$binarySize

×

$bsonSize

×

$first

×

$function

×

$last

×

$isNumber

×

$replaceOne

×

$unionWith

×

$dateAdd

×

×

×

×

$dateSubtract

×

×

×

×

$dateDiff

×

×

×

×

$dateTrunc

×

×

×

×

$rand

×

×

×

×

×

$sampleRate

×

×

×

×

×

$getField

×

×

×

×

$setField

×

×

×

×

$unsetField

×

×

×

×

$setWindowFields

×

×

×

×

×

let

×

×

×

×

×

$expr (using indexes)

×

×

×

×

×

×

$ifNull

×

×

×

×

×

NOTE:

DDS Features

Table 3 DDS features

Category

Feature

Constraint

DDS 4.0

DDS 4.2

DDS 4.4

DDS 5.0

Remarks

DB Instance Type

Single Node

Replica Set

Cluster

Single Node

Replica Set

Cluster

Single Node

Replica Set

Cluster

Replica set

Cluster

-

Instance Management

Creating an instance

-

-

Deleting an instance

-

-

Restarting an instance

-

-

Resetting a password

-

-

Changing an instance name

-

-

Changing an instance port

-

-

Performing a switchover

-

×

-

Exporting the instance list

-

-

Compute scale-up

-

-

Compute scale-down

-

-

Adding nodes

-

-

-

-

Deleting nodes

-

-

×

×

-

×

×

×

×

×

×

×

-

Storage scale-up

-

-

Storage scale-down

-

×

×

×

×

×

×

×

×

×

×

×

-

Restarting a node

-

-

OpenAPI

-

-

SDK

-

-

Task center

-

-

Tags

-

-

Quotas

-

-

Network Management

EIP-based public network access

-

-

Changing a private IP address

-

-

Cross-CIDR access

-

×

×

×

×

×

×

×

In DDS 4.2, 4.4 and 5.0, the client and an instance can communicate only when they are in the same VPC and subnet. If the client is a container, the client can communicate with an instance using an IP address in the default CIDR block 192.168.0.0/16, 172.16.0.0/24, or 10.0.0.0/8.

Changing an AZ

-

×

×

×

In DDS 4.2, 4.4 and 5.0, deploying an instance across multiple AZs is recommended.

Domain name access

-

×

×

×

×

×

×

×

In DDS 4.2, 4.4 and 5.0, you are advised to use the IP address to access an instance.

Security

Security group

-

-

SSL

-

-

Instance recycle bin

-

-

Storage encryption

-

×

×

×

×

×

×

×

×

-

Billing

Converting a single node to a replica set

-

×

-

-

×

-

-

×

-

-

-

-

-

Pay-per-use

-

-

Yearly/Monthly

-

×

In open beta testing (OBT), DDS 5.0 does not support the yearly/monthly billing.

Changing pay-per-use to yearly/monthly

-

×

In open beta testing (OBT), DDS 5.0 does not support the yearly/monthly billing.

Changing yearly/monthly to pay-per-use

-

×

In open beta testing (OBT), DDS 5.0 does not support the yearly/monthly billing.

Versions

Minor version upgrade (manual)

-

-

Minor version upgrade (automatic)

-

×

×

×

×

×

×

×

×

×

×

×

-

Major version upgrade (manual)

-

×

×

×

×

×

×

×

×

×

×

×

-

Logs

Viewing slow query logs

-

-

Downloading slow query logs

-

-

Masking slow query logs

-

-

Querying error logs

-

-

Downloading error logs

-

-

Configuring the audit log policy

-

-

Querying audit logs

-

-

Downloading audit logs

-

-

Parameters

Changing a parameter template

-

-

Creating a parameter template

-

-

Deleting a parameter template

-

-

Modifying a parameter template

-

-

Comparing parameter templates

-

-

Backup and Restoration

Automated backup

-

-

Manual backup

-

-

Deleting a backup

-

-

Restoring to a new DB instance

-

-

Restoring data to the original DB instance

-

-

Restoring to an existing DB instance

-

×

×

×

×

×

×

×

×

×

×

×

-

Configuring an automated backup policy

-

-

Incremental backup

-

×

×

-

PITR

-

×

×

×

-

Downloading a full backup file

-

-

Downloading an incremental backup file

-

-

-

-

-

-

-

-

-

-

-

-

-

Cross-region backup

-

-

Cross-region restoration

-

-

O&M

Creating a database role

This operation can only be performed by calling a specified API.

-

Creating a database account

This operation can only be performed by calling a specified API.

-

Deleting a database role

This operation can only be performed by calling a specified API.

-

Dropping a database user

This operation can only be performed by calling a specified API.

-

Monitoring by seconds

Minimum interval: 5s

-

NOTE:

√ indicates that an item is supported, and × indicates that an item is not supported.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback