![]() We need to agree on that when revising the course material. For some example caveats, see MySQL’s Advantages and Disadvantages of Statement-Based and Row-Based Replication.Ī better description for MongoDB’s approach might be document-based replication, or perhaps logical replication (as opposed to physical). I think it is important to call out this difference, as statement-based replication in the SQL world can lead to significant side effects (especially when stored procedures are involved). ![]() sudo systemctl enable rvice & sudo systemctl start rvice. It will install MongoDB and you will be able to enable and start service. sudo apt-get update & sudo apt-get install mongodb-org. Update packages and install MongoDB on Ubuntu. For example, a command deleting a range of documents (eg db.mydata.remove() will result in an oplog entry for every document deleted on the primary to ensure all members of the replica set apply identical changes. As previously, we will use the combined commands with &. Oplog operations produce the same results whether applied once or multiple times to the target dataset, which would not be the case if the original statement was used. The replication oplog records operations affecting data as ordered sequences of idempotent changes based on the original command and the affected documents. However I realise it is used in one of our MongoDB University courses and have raised an issue to review this usage. Unfortunately this is inaccurate terminology.
0 Comments
Leave a Reply. |