MongoDB 4.0 Gets Multi-Doc ACID Support
Written by Kay Ewbank   
Tuesday, 20 February 2018

The next release of MongoDB will finally have support for multi-document ACID transactions, and there's a beta version available now with the new technology. 

MongoDB is a popular document database that has some support for ACID transactions at the document level, but until now not for multi-document transactions. The forthcoming MongoDB 4.0 will add support for multi-document transactions to provide a globally consistent view of data. The developers say that multi-document transactions will feel just like the transactions in relational databases. They'll be multi-statement, use start_transaction and commit_transaction statements, and will initially work across a single replica set. MongoDB 4.2 will add support for transactions across a sharded deployment.

 

mongodbtrans

Writing about the new features in a blog post, Eliot Horowitz, CTO and Co-Founder of MongoDB, said:

"The changes to MongoDB that enable multi-document transactions will not impact performance for workloads that do not require them."

This makes it fairly clear that using the transactional support will slow down those applications that use it. It's not clear what percentage of users will actually need or use the new facility, as it was already possible to carry out atomic single-document operations. However, the fact the support will be there may well make some companies consider MongoDB where they would previously not have done so. 

The new transactional support has been achieved by a major re-engineering of MongoDB to make use of the WiredTiger storage engine that MongoDB acquired when they acquired WiredTiger three years ago. Horowitz said in the blog post:

"We’ve laid the groundwork in almost every part of the server – from the storage layer itself, to the replication consensus protocol, to the sharding architecture. We’ve built out fine-grained consistency and durability guarantees, introduced a global logical clock, refactored cluster metadata management, and more. We’ve also exposed all of these enhancements through APIs that are fully consumable by our drivers."

The support for transactions is described as being about 85 percent there in terms of the features that enable transactions. In practical terms, MongoDB 4 supports recovery to a timestamp, and work is in progress on storage support on prepared transactions; replica-set point-in-time reads; and recoverable rollback via WiredTiger checkpoints.

More Information

MongoDB Site

Related Articles

MongoDB Stitch Makes App Development Easier

MongoDB 3.2 Released 

MonggoDB 3 Announced

MongoDB 2.6 Released

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


Wasmer 5 Adds iOS Support
12/11/2024

The Wasmer team has released Wasmer 5.0. The WebAssembly runtime adds experimental support for more back ends including V8, Wasmi and WAMR. It also now has iOS support, and upgraded compilers includin [ ... ]



Apollo Adds REST APIs For GraphQL
29/10/2024

Apollo has added a simpler way to integrate REST APIs into a federated GraphQL environment. Available now in public preview, can be used to map REST API endpoints to their GraphQL schema using a decla [ ... ]


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Wednesday, 21 February 2018 )