how to do transactions/locking in mongodb?



how to do transactions/locking in mongodb?..

Answer / Meenakshi Chauhan

MongoDB supports multi-document transactions through the WiredTiger and MMAPv1 storage engines. For locking, MongoDB uses a MVCC (Multi-version Concurrency Control) approach which allows multiple versions of documents to coexist, reducing contention.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

Why is mongodb used?

1 Answers  


How index is used in mongodb?

1 Answers  


What language you can use with mongodb?

1 Answers  


What is nosql database and why you use nosql database?

1 Answers  


Which are the different languages supported by mongodb?

1 Answers  


Can you lock more than one database at the same time in mongodb?

1 Answers  


What are the different types of nosql databases? Give some examples.

1 Answers  


Is mongodb a graph database?

1 Answers  


What is the role of 8 analysers in mongodb?

1 Answers  


What is index and how it is used in mongodb?

1 Answers  


Should you start out with sharded or with a non-sharded mongodb environment?

1 Answers  


What is the difference between mongodb and redis database?

1 Answers  


Categories