MongoDB Question:
Download Questions PDF

How to do transactions/locking?

MongoDB Interview Question
MongoDB Interview Question

Answer:

MongoDB does not use traditional locking or complex transactions with rollback, as it is designed to be lightweight and fast and predictable in its performance. It can be thought of as analogous to the MySQL MyISAM autocommit model. By keeping transaction support extremely simple, performance is enhanced, especially in a system that may run across many servers.

Download MongoDB Interview Questions And Answers PDF

Previous QuestionNext Question
Does an update fsync to disk immediately?Tell me why are my data files so large?