Will MongoDB / CouchDB support transactions?

On the MongoDB webpage, I understand that they do not fully support transactions, if any.

I wonder if they will ever support him in the future so that I can store financial information in them instead of using RDBMS for it.

And how does this happen with CouchDB, do they support transactions?

+4
source share
3 answers

None of them support transactions in the sense of more traditional RDMS - and they are unlikely to do so - this trade-off that supports transactions in a distributed system is non-trivial and expensive.

MongoDB does not have ACID properties and probably never will. CouchDB gives you ACID (I'm not sure if it is the default).

Both allow simple atomic operations with data, such as simple addition / subtraction of values.

see also

Can I do transactions and locks in CouchDB?

MongoDB transactions?

In this post, this podcast with one of the MongoDB guys should give you a brief overview of the problems that many NoSQL systems are trying to solve, and their compromise.

+6
source

Yes, MongoDB does not support a transaction out of the box, but you can implement optimistic transactions yourself. I wrote an example and some explanation on the GitHub page. I hope you find this helpful.

0
source

Major development: starting with the next version, ACID transactions with multiple documents with isolation of snapshots and a guarantee of "all or nothing" are supported by MongoDB.

Read more in the announcement made by Eliot Horowitz, MongoDB CTO and co-founder.

0
source

All Articles