MongoDB Question:
Download Job Interview Questions and Answers PDF
How to do transactions/locking?
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 Question | Next Question |
Does an update fsync to disk immediately? | Tell me why are my data files so large? |