InterviewSolution
Saved Bookmarks
| 1. |
How Can Concurrency Affect Replica Sets Primary? |
|
Answer» In replication, when MongoDB writes to a COLLECTION on the primary, MongoDB ALSO writes to the primary's OPLOG, which is a SPECIAL collection in the local database. THEREFORE, MongoDB must lock both the collection's database and the local database. In replication, when MongoDB writes to a collection on the primary, MongoDB also writes to the primary's oplog, which is a special collection in the local database. Therefore, MongoDB must lock both the collection's database and the local database. |
|