Anonymous Asked in Cars &Transportation · 2 weeks ago

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 .Transaction support in MongoDB - Stack OverflowHow to work around the lack of transactions in MongoDB?Spring Boot Transaction support using @transactional annotation .mongo db transaction with multiple collection not workingДругие результаты с сайта stackoverflow.com


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.

Is MongoDB a transactional database?

Databases like MongoDB that support ACID transactions are known as transactional databases. Transactions allow developers to group database operations together in a way that they all succeed or all fail together.

Are MongoDB transactions Atomic?

In MongoDB, a write operation is atomic on the level of a single document, even if the operation modifies multiple embedded documents within a single document.

Why MongoDB is not ACID compliant?

It does not comply with the definition of atomic that we know from relational database systems, in particular the link above. In this sense MongoDB does not comply with the A from ACID. MongoDB is C onsitent by default. However, you can read from secondary servers in a replica set.

Related Questions

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