Docs Menu
Docs Home
/
MongoDB Manual
/

Release Notes for MongoDB 8.0 (Release Candidate)

On this page

  • General Changes
  • Changes Introduced in 7.X-Series Rapid Releases
  • Upgrade Procedures
  • Download

Important

MongoDB 8.0 Release Candidates

MongoDB 8.0 binaries are currently available only as release candidates. Release candidates can be used for early testing of new features, but are not suitable for production deployments.

This version of the manual is for an upcoming release and is currently a work in progress.

This page describes changes and new features introduced in MongoDB 8.0.

MongoDB 8.0 is a Major Release, which means that it is supported for both MongoDB Atlas and on-premises deployments. MongoDB 8.0 includes changes introduced in MongoDB Rapid Releases 7.1, 7.2, and 7.3. To see changes introduced in these rapid releases, see Changes Introduced in 7.X-Series Rapid Releases.

To learn more about the differences between Major and Rapid releases, see MongoDB Versioning.

Starting in MongoDB 8.0, you can use the new autoCompact command to perform background compaction. If enabled, the server attempts to keep free space within each collection and index below the specified the freeSpaceTargetMB value.

If enabled, the compact command returns an estimate of how much space, in bytes, compaction can reclaim from the targeted collection. If you run compact with dryRun set to true, MongoDB only returns the estimated value and does not perform any kind of compaction.

Starting in MongoDB 8.0, you can use the new bulkWrite command to perform many insert, update, and delete operations on multiple collections in one request. The existing db.collection.bulkWrite() method only allows you to modify one collection in one request.

Starting in MongoDB 8.0, you can use read concern "snapshot" on capped collections.

In MongoDB 8.0, if you add or remove a shard while your cluster executes a DDL operation (operation that modifies a collection such as reshardCollection), the operation that adds or removes a shard only executes after the concurrent DDL operation finishes.

Starting in MongoDB 8.0, you can use the defaultMaxTimeMS cluster parameter to specify a default time limit for individual read operations to complete.

Starting in MongoDB 8.0, use the new query settings instead of index filters. Index filters are deprecated starting in MongoDB 8.0. Query settings have more functionality than index filters.

Starting in MongoDB 8.0, the tcmallocEnableBackgroundThread is enabled by default. This allows MongoDB to periodically release memory back to the operating system.

MongoDB 8.0 includes changes and features from the following Rapid Release versions:

Important

Feature Compatibility Version

To upgrade to MongoDB 8.0 from a 7.0 deployment, the 7.0 deployment must have featureCompatibilityVersion set to 8.0. To check the version:

db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )

To upgrade to MongoDB 8.0, refer to the upgrade instructions specific to your MongoDB deployment:

If you need guidance on upgrading to 8.0, MongoDB professional services offer major version upgrade support to help ensure a smooth transition without interruption to your MongoDB application. To learn more, see MongoDB Consulting.

To download MongoDB 8.0, go to the MongoDB Download Center.

← Release Notes