4 ms·
Thanks, that's helpful! Regarding locking the database rows, I'm a little unclear about how that helps? Is the idea that once a record has been migrated from m
by vosper 7y ago
Thanks, that's helpful!
Regarding locking the database rows, I'm a little unclear about how that helps? Is the idea that once a record has been migrated from mongo to RDBMS you want to lock the data in the latter so that no-one accidentally updates the record in the RDBMS and not in Mongo? And therefore Mongo remains the definite source of truth?
- nishantvyas 7y agobasically locking will create the serializability for that document... so if there are concurrent updates on mongo side it will have to wait... also for step-1 in dual write it should be automic/two-phase between mongo and RDBMS.