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, FacebookGoogle+ or Linkedin.

 

Banner


Facebook Dead Will Inevitably Outnumber Live Users
11/11/2018

Facebook has had a huge impact on the lives of its users, connecting individuals to their family and friends as never before. As time passes so do people, and there will come a point when more Faceboo [ ... ]



Algojammer - Python Editor in the Style of Bret Victor
31/10/2018

Bret Victor is well known for promoting the idea that programming could be made easier and more natural by providing the right tools and environment. However it isn't easy to create said environm [ ... ]


More News

 

Python

 



 

Comments




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

Last Updated ( Wednesday, 21 February 2018 )