tencent cloud

TencentDB for MongoDB

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Strengths
Use Cases
Cluster Architecture
Product Specifications
Features
Regions and AZs
Terms
Service Regions and Service Providers
Purchase Guide
Billing Overview
MongoDB Pricing
Billing Formula
Payment Overdue
Backup Space Billing
Configuration Adjustment Billing
Getting Started
Quickly Creating an Instance
Connecting to a TencentDB for MongoDB Instance
Reading/Writing Database
Operation Guide
Access Management
Instance Management
Node Management
Version Upgrade
Network Configuration
Monitoring
Backup and Rollback
Database Audit
Data Security
SSL Authentication
Log Management
Database Management
Multi-AZ Deployment
Disaster Recovery/Read-Only Instances
Parameter Configuration
Recycle Bin
Task Management
Performance Optimization
Data Migration Guide
Practical Tutorial
Optimizing Indexes to Break Through Read/Write Performance Bottlenecks
Troubleshooting Mongos Load Imbalance in Sharded Cluster
Considerations for Using Shard Clusters
Sample of Reading and Writing Data in MongoDB Instance
Methods for Importing and Exporting Data Based on CVM Connected with MongoDB
What to Do for Errors of Repeated Instance Creation and Deletion of Databases with the Same Names?
Troubleshooting MongoDB Connection Failures
Shard Removal Task: Guide for Confirming the Progress and Troubleshooting Issues
Performance Fine-Tuning
Ops and Development Guide
Development Specifications
Command Support in Sharded Cluster v3.2
Command Support in v3.6
Development Ops
Troubleshooting
Increased Slow Queries
Number of Connections Exceeding Limit
API Documentation
History
Introduction
API Category
Making API Requests
Instance APIs
Backup APIs
Account APIs
Other APIs
Task APIs
Introduction
Data Types
Error Codes
Instance Connection
Shell Connection Sample
PHP Connection Sample
Node.js Connection Sample
Java Connection Sample
Python Connection Sample
Python Read/Write Sample
Go Connection Sample
PHP Reconnection Sample
Product Performance
Test Environment
Test Method
Test Result
FAQs
Cost
Features
Sharded Cluster
Instance
Rollback and Backup
Connection
Data Migration
Others
Service Agreement
Service Level Agreement
Terms of Service
Glossary
Contact Us

New Features in v5.0

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2024-01-15 14:33:12
MongoDB 5.0 marks the start of a new release cycle to deliver new features to users more quickly.

Time series data

MongoDB 5.0 supports native time series data, i.e., highly time-related continuous data, and provides various capabilities such as time series collection and cluster index. They greatly expand MongoDB's application in the fields of IoT, finance, monitoring system, log analysis, and financial analysis.

Live resharding

MongoDB 5.0 supports changing a collection's shardkey as needed through the reshardCollection command as the workload grows and changes while the business is running. The entire process is easy and efficient, without stopping the database service or requiring complicated migration. The syntax format of this command is as follows:
reshardCollection: "database.collection", key: shardkey
database: Select the name of the database that needs to be resharded.
collection: Select the name of the collection that needs to be resharded.
shardkey: Specify the new shard key.

Versioned API

With versioned API, MongoDB 5.0 defines a set of commands and parameters most commonly used by applications in a versioned manner, including those used to read and write data and create collections and indexes. A new version of such an API may have new parameters, aggregation operators, or commands added but must be backward compatible. In this way, application developers no longer have to worry about compatibility issues after database version upgrade. As long as the database version supports this API version, applications can continue to run with no adaptation needed. The decoupling of application lifecycle and database lifecycle helps users try out MongoDB's new features faster and more conveniently.

New MongoDB Shell

MongoDB 5.0 comes with a redesigned MongoDB Shell, which introduces syntax highlighting, smart self-service contextual help, and helpful error messages for a more modern command line experience.

Adjustment of the default value of the write concern policy

In versions earlier than MongoDB 5.0, the write concern defaults to w=1, and the system only waits for the primary node to complete the write operation before returning a message confirming that the write is successful. Starting from MongoDB 5.0, the write concern defaults to w=majority, that is, only after the data write is applied to the primary node and data is written by the majority of voting nodes will an acknowledgment be sent to the client. This enhances the data reliability. For more information, see Write Concern.

Version release adjustment

The versions released by MongoDB are divided into major releases and rapid releases. Rapid releases provide download and testing experience as development versions and are not recommended for use in a production environment.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan