MongoDB Inc. logo

The MongoDB module suite for Drupal 10 stores data in MongoDB instead of the default Drupal SQL database.

For Drupal 11/10 site administrators

It means a faster Drupal and better logs, without a line of code.

  • it provides a more usable user interface to access logs, and a faster database logging than core, without the complexities associated with external logging mechanisms like the Elastic Stack (BELK).
  • it provides a faster implementation of the Drupal Key-Value store and Queue API
  • overall, it provides a simple way to reduce the load on your SQL database server, without needing complex configuration or having to write a single line of code.

For Drupal 11/10 project developers

It means easy project development using MongoDB.

  • A Drupal-standard API to access the features in the MongoDB library using database-style aliases, providing Symfony factory services to access MongoDB instances even on separate clusters from these aliases, just like standard Drupal SQL databases.
  • A PSR-3 implementation, available both as a Drupal standard backend for the centralized Drupal 10 logger system, and as a dedicated MongoDB-only logger for special situations
  • A MongoDB backend for the Drupal key-value API.
  • Helpers around the compatibility breaks in the MongoDB PHP library.
  • Troubleshooting and utility commands for both Drush 12 and 11, usable as examples to build bespoke commands.
  • A complete redacted documentation details each module, and includes an example test implementation to show how to write Unit, Kernel, and Functional tests that will set up and clear MongoDB databases automatically, just like those built for SQL code.

For Drupal 11/10 contributors

It also makes contribution easy.

  • Built on the current standard mongodb PHP extension and mongodb/mongodb high-level PHP library. No more Drupalisms: just dependency-injected Symfony code like one would find in a pure Symfony project.
  • Continuous integration built on Drupal GitlabCI allows testing of merge requests.
  • Live support is available on Drupal Slack #mongodb channel.

Which release should I use?

  • 8.x-2.1 for production or 8.x-2.x dev for leading edge
  • Drupal 10.x: 8.x-2.1 for production
  • Drupal 7.x : 7.x-1.0-rc3. But Drupal 7 practical EOL was on 2023-08-01, even if it still has some support until 2025-02-05

Full support Drupal on MongoDB

The 3.x branch is for the full support version of Drupal on MongoDB. No other database needed. EVerything is stored on MongoDB. The database driver is currently expirimental. It is for Drupal 11. The instructions on how to get installed with DDEV can be found in the added README.md file.

Unsupported versions

Supporting organizations: 
Maintains the 8.x-2.x branch and the Logger and Driver since D6.
Sponsored the NoSQL Distribution (8.x-1.x)
Sponsors the full support database driver for MongoDB (3.x)

Project information

Releases