The conversation between human and AI assistant.
How the internal working of statement-based-replication happens on secondary node of mongodb?
How does this differ from other types of replication in MongoDB?
Well, in oplog-based replication, the secondary node receives a stream of operations from the primary node and applies them in batches, while in rollback-based replication, the secondary node replays the entire data set as it was at the time of the primary node's last checkpoint before applying the operations that came after that.