Latest in branch 6.1 (Rapid Release)
6.1.1
Released 03 Jan 2023
(3 years ago)
SoftwareMongoDB Server
Version6.1 (Rapid Release)
Status
End of life
Initial release6.1.0
04 Oct 2022
(3 years ago)
Latest release6.1.1
03 Jan 2023
(3 years ago)
End of life31 Jul 2022
(Ended 3 years, 10 months ago)
Release noteshttps://www.mongodb.com/docs/manual/release-notes/6.1/
Documentationhttps://www.mongodb.com/docs/v6.1/
Downloadhttps://www.mongodb.com/try/download/community
MongoDB Server 6.1 (Rapid Release) ReleasesView full list

What Is New in MongoDB 6.1

MongoDB 6.1 delivers a set of enhancements focused on developer productivity, query expressiveness, and operational resilience. This release builds on the foundation of 6.0 with key improvements to time series collections, change streams, and sharding.

Category Key Updates
New Features Time Series Gap Filling, Change Streams Optimizations, Sharded Time Series Collections
Improvements Enhanced Aggregation ($dateTrunc, $dateAdd), Faster Initial Sync, Improved Diagnostics
Resilience Refined Retryable Writes and Reads Logic

How are time series collections more powerful in 6.1?

Time series workloads get a significant boost with two major features. Gap filling allows you to populate missing data points in a time series sequence, which is crucial for generating continuous charts and reports from sparse data.

Sharded time series collections are now generally available, enabling horizontal scaling for your most demanding IoT and financial analytics workloads. This means you can distribute a massive time series collection across multiple shards to handle immense data volumes and ingestion rates.

What aggregation pipeline enhancements were added?

The aggregation framework gets more expressive with new date operators. The $dateTrunc operator lets you truncate a date to a specific unit (like hour, day, or week), simplifying grouping and bucketing operations.

Additionally, $dateAdd provides a straightforward way to add a specified time duration to a date. These operators reduce the need for complex custom date manipulation logic within your application code.

How do change streams improve in this release?

Change streams become more efficient, particularly for large-scale deployments. The enhancement reduces the overhead associated with opening a change stream against a whole database or cluster.

In practice, this translates to better performance and lower resource consumption when you need to listen for real-time data changes across many collections, making event-driven architectures more scalable.

Is initial sync any faster now?

Yes, initial sync operations for replica sets have been optimized for speed. The process of bootstrapping a new secondary node now completes more quickly by leveraging improvements in data cloning and oplog application.

This matters because it shortens the window where a replica set is vulnerable to further failures during recovery or scaling events, improving overall cluster resilience.

What's new for handling transient errors?

The logic for retryable writes and reads has been refined to be more robust. The system now does a better job of automatically retrying operations that fail due to transient network issues or election events.

For developers, this means more reliability out-of-the-box. Your application can handle brief connectivity blips without you having to write complex custom retry logic, leading to more stable application behavior.

FAQ

Can I shard my existing time series collection after upgrading to 6.1?
Yes, sharded time series collections are generally available. You can shard a new or existing time series collection to distribute its data across multiple shards for horizontal scaling.

What is the primary use case for the $dateTrunc operator?
The main use case is for simplifying time-based grouping in aggregations. For example, you can easily group sales data by truncated hour or day without complex date manipulation code.

Do the change stream optimizations require any code changes?
No, the performance improvements for change streams are server-side. Your existing application code that uses change streams will automatically benefit from reduced overhead.

How does gap filling work in time series collections?
Gap filling allows you to define a value to insert for missing data points in a sequence within your aggregation pipeline, ensuring your time-based graphs and analyses have a continuous flow of data.

Are retryable reads enabled by default in MongoDB 6.1?
The retryable reads feature is available, but whether a specific read operation is retried depends on the driver and the specific method called. Most modern drivers support it for appropriate operations.

Releases In Branch 6.1 (Rapid Release)

VersionRelease date
6.1.103 Jan 2023
(3 years ago)
6.1.1-rc107 Dec 2022
(3 years ago)
6.1.1-rc023 Nov 2022
(3 years ago)
6.1.004 Oct 2022
(3 years ago)
6.1.0-rc403 Oct 2022
(3 years ago)
6.1.0-rc326 Sep 2022
(3 years ago)
6.1.0-rc213 Sep 2022
(3 years ago)
6.1.0-rc107 Sep 2022
(3 years ago)
6.1.0-rc025 Aug 2022
(3 years ago)
6.1.0-alpha18 Apr 2022
(4 years ago)