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 6.0

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2024-10-10 11:43:38
This document lists the major features introduced in TencentDB for MongoDB version 6.0. For more detailed information, see the MongoDB 6.0 release-notes.

Time Series Collection Enhancements

MongoDB 6.0 introduces several improvements to time series collections, including enhancements to indexing, querying, and sorting, providing more powerful time series data processing capabilities.
First, MongoDB 6.0 introduces secondary indexes and compound indexes, significantly improving the read performance of time series collections. In previous versions, time series collections only supported basic single-key indexes, which could lead to performance bottlenecks when handling large amounts of data. By introducing secondary and compound indexes, developers can create more complex index structures based on actual needs, thereby enhancing query performance.
Second, MongoDB 6.0 introduces geo-indexing for spatiotemporal data, allowing developers to add geographic information to time series data. This enables more effective analysis of scenes involving distance and location.
In addition, MongoDB 6.0 optimizes query performance for time series data. In previous versions, querying the last data point in a time series collection required scanning the entire collection, which could result in high query latency. MongoDB 6.0 introduces an optimized last point query mechanism, allowing the system to directly locate the last data point in the collection without scanning the entire dataset.
Last, MongoDB 6.0 improves the sorting performance of time series data. By utilizing clustered indexes on time and metadata fields, along with secondary indexes, MongoDB 6.0 can perform sorting operations on time series data more efficiently. This allows developers to sort time series data as needed for better analysis and visualization.
In summary, the time series collection enhancements in MongoDB 6.0 provide developers with more powerful data processing capabilities, making it easier to build high-performance time series data applications.

Change Streams

The Change Streams feature allows business systems to capture real-time changes in the database, enabling the development of various event-driven applications or systems. By using Change Streams, developers can avoid the need for complex data synchronization middleware, simplifying architecture and improving reliability.
In MongoDB 6.0, Change Streams support viewing the pre-change status of documents, allowing developers to capture both the before and after status of a document. Additionally, Change Streams now support various DDL statements, including create, createIndexes, modify, and shardCollection, providing developers with more comprehensive monitoring of database changes.
In MongoDB 6.0, a new wallTime field has been added to change events. This field contains timestamp information and supports various conversion and display operators, including $toDate, $tsSeconds, and tsIncrement. For more information, see Change Events.

Aggregation

MongoDB 6.0 has further enhanced its aggregation capabilities, allowing users to process multiple documents more efficiently and return computed results. By combining multiple operators in the aggregation pipeline, users can build complex data processing pipelines to extract and analyze data. Below are some new features and optimizations in MongoDB 6.0’s aggregation functionality:
Sharded cluster instances now support $lookup and $graphLookup, providing more powerful data processing and analysis capabilities. For more information, see $lookup (aggregation) and $graphLookup (aggregation).
The $lookup operator has been optimized for better JOIN support, making JOIN operations across multiple collections more efficient.
The $graphLookup operator has been optimized for better graph traversal support, making it more efficient when processing complex graph data structures.

Query

In MongoDB 6.0, the query feature has been further enhanced with the introduction of several new operators, including $maxN, $topN, $minN, $bottomN, $lastN and $sortArray. These operators allow developers to handle complex query requirements more efficiently. For more information, see Aggregation Pipeline Operators.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan