MongoDB and Drupal (@ DrupalCon)
Last week I spent in Munich, Germany attending and speaking at DrupalCon. This was my first DrupalCon, and I have to say I was amazed with both the size (1800+ people) as well as the great community they have built. My main reason for going was to see how Drupal and MongoDB work together, and what we can do to make their integration better.
From my side, MongoDB related events were me presenting at the Munich MongoDB Usergroup on Indexing on Tuesday evening, a birds of a feather session on Wednesday, where I showed how Drupal 7 can be used with MongoDB at the moment and my presentation "Introduction to MongoDB" where I outlined what makes MongoDB such a good fit for Drupal. The presentation on the conference were standing room only.
I have taken quite a few things back from this conference. First of all, it seems clear that there is a lot of interest in the Drupal community to have MongoDB working as a first-class citizen, especially for higher traffic sites. Right now, there is a module that "just" integrates into only a few places in Drupal. We also support the EntityFieldQuery module.
But, as most of Drupal 7 is using hard coded SQL queries, it is hard (though possible) to run everything with MongoDB instead of MySQL. Due to the inherent design issues with Drupal 7 it is not easy to use and this then results that sites such as the WhiteHouse's petition website moving back from MongoDB to MySQL. In their own words:
"The current release depends on MongoDB. When we first created the application, we wanted to make sure we had a highly scalable application and database to meet our anticipated performance needs under high loads. We have been running MongoDB in production for over a year, but we have decided that the performance benefits it provides are outweighed by the complexity of trying to extend Drupal features backed by MongoDB."
Of course, we would like MongoDB to be used with Drupal and we are putting effort into making this a lot better for Drupal 8. Besides more interaction with the Drupal community such as sponsoring and attending DrupalCon, we also financially support Károly Négyesi (or chx as most people know him) to make sure that Drupal 8 will work a lot better with MongoDB. Nevertheless, there is still a lot of work to be done there.
Comments
Which is why Drupal will only be truely ready for alternative datastores once it moves to PHPCR. Right now many modules in fact only work with MySQL. Once PHPCR is put into Drupal there will be 2 key benefits:
-
there is a flexible query language to allow for advanced queries not easily captured via a plain node API
-
it will be possible to address specific performance issues at a much lower level which is encapsulated by a clear specification
As such I would highly recommend 10gen to also help out on PHPCR. While PHPCR will not become the default storage for Drupal 8, there is work underway that will enable PHPCR to be used for storage via a module. While this will not do much to boost MongoDB in the near term, it will mean that PHPCR adoption for Drupal 9 will be much more likely. But also that module developers will be more prepared for this step once it comes around.
Life Line
Updated an information and a bench
Created 2 benches
Created 4 picnic_tables, a bench, and a fitness_station; Updated a pub and a sport club
Created 2 benches and 2 waste_baskets; Updated 4 benches, a bus_stop, and a cafe; Confirmed a dentist
Created 3 waste_baskets, 2 main entrances, and a bench; Deleted a cycle_barrier, a bench, and a waste_basket
Created an information; Updated a waste_basket and a bench
Updated 2 waste_baskets and a bench
Created 3 benches
Created a waste_basket; Updated 2 benches and a tree
I walked 3.5km in 35m31s
Created a main entrance and a home entrance
Created an entrance
Updated a house building
Created an entrance
I walked 5.8km in 1h15m06s
I've just finished reading "A Cheese-Monger's Tour de France", by Ned Palmer.
Now I want to try many of those! 🧀
I'm thrilled to announce that I'll be speaking at the 23rd edition of #phpday, the international PHP conference in Italy, organised by @grusp.
I’ll be presenting a talk titled: "Better Debugging With Xdebug".
It's in Verona, Italy, on May 14-15th 2026.
You can use my speaker’s discount code "speaker_10OFF" for 10% off at https://www.phpday.it/tickets/?utm_medium=organic&utm_source=linkedin&utm_campaign=post-speaker
I walked 5.5km in 1h11m00s
I walked 1.1km in 9m37s
Merged pull request #1066
PHP 8.6: Changes to opcache optimisations wrt function arguments
I walked 10.5km in 1h49m54s
Fixed building type
Fixed addresses and building type
Updated a bus_stop, a waste_basket, and a bench


Shortlink
This article has a short URL available: https://drck.me/drupalmongo-9j3