Anonymous Asked in Cars &Transportation · 2 weeks ago

Is MongoDB good for transactional?

MongoDB doesn't support transactions, but saving one document is atomic. So, it is better to design you database schema in such a way, that all the data needed to be saved atomically will be placed in one document. 25 апр. 2017 г.


Can I use MongoDB for transactional applications?

MongoDB added support for multi-document ACID transactions in version 4.0, and MongoDB expanded that support to include distributed transactions in version 4.2. You can implement a transaction in a variety of programming languages using any of MongoDB's official drivers.

Is MongoDB good for transactional data?

Summary. Even though it has improved its transactional capabilities over the last few years, MongoDB is still architecturally inferior to modern transactional databases such as YugaByte DB. Using transactions in MongoDB today essentially means giving up on high performance and horizontal scalability.

Why is MongoDB not transactional?

Having no transaction is a trade-off to allow MongoDB to be scalable. The purpose of a transaction is to make sure that the whole database stays consistent while multiple operations take place. But in contrary to most relational databases, MongoDB isn't designed to run on a single host.

Which database is best for transactional data?

SQL databases provide great benefits for transactional data whose structure doesn't change frequently (or at all) and where data integrity is paramount. It's also best for fast analytical queries. NoSQL databases provide much more flexibility and scalability, which lends itself to rapid development and iteration.

Related Questions

Relevance
Write us your question, the answer will be received in 24 hours