InterviewSolution
Saved Bookmarks
| 1. |
db.employee.find({"employeeid" : {"$gte" : 15000, "$lte" : 70000}}); |
|
Answer» Every operation on the primary is logged in operation logs known as oplog. These oplogs are replicated to For a healthy replica set system, it is RECOMMENDED that all MEMBERS are in sync with no replication lag. Data is first written on primary by the applications then replicated to secondary. This synchronization is important to maintain up-to-date copies of data on all members. Synchronization happens in 2 ways: initial sync and continuous replication.
|
|