Updated on 2025-11-14 GMT+08:00

Overview

This document provides best practices for Document Database Service (DDS) and guides you through using DDS to best suit your business needs.

Service

Reference

Overview

Document Database Service

Common Methods for Connecting to a DDS Instance

This section describes common DDS connection methods.

How Do Replica Sets Achieve High Availability and Read/Write Splitting?

This section describes how to connect to a replica set instance to achieve high availability.

Sharding

This section describes how to set cluster shards to improve database performance.

How Do I Improve DDS Performance by Optimizing SQL Statements?

This section describes DDS usage suggestions.

How Do I Prevent the dds mongos Cache Problem?

This section describes how to avoid the mongos route cache defect of the cluster.

How Do I Solve the High CPU Usage Issue?

This section describes how to troubleshoot high CPU usage.

Creating a User and Granting the Read-Only Permission to the User

This section describes how to use IAM to grant read-only permissions to DDS.

How Is a DDS Node Going to Be Disconnected and What Can I Do?

This section describes the principles and workarounds of node disconnection.

Avoiding Cursor Invalidity Caused by hideIndex

This section describes how to prevent a cursor from becoming invalid due to hideIndex.

Using DDS to Store and Analyze Log Data

This section describes how to use DDS to store and analyze application log data.

DDS Query Plans and Query Replanning

This section describes the principles and scenarios of query plans and query replanning.

DDS Transactions and Read/Write Concerns

This section describes transactions and read/write concerns.

DDS Metric Alarm Configuration Suggestions

This section describes suggestions on configuring alarm rules of DDS metrics.

Working with Indexes

This section describes suggestions on working with indexes.