Quantcast
Channel: Question and Answer » web-services
Viewing all articles
Browse latest Browse all 136

How can we rollback a database synchronized over multiple systems?

$
0
0

On a mobile device, a set of operations has been saved in the local DB with a wrong date (because the system date was set in the future). Then the device regularly doing synchronisation with a server DB, the erroneous operations have been propagated to the server.

Later the wrong date has been detected by the mobile user, and the system date set back correctly, and the user resumed his normal flow of work, pushing even more data to the server.

What should be the best strategy to clean the data from this incorrect state. As suggested in Accountants Don’t Use Erasers, a wrong entry (invoice for example) should be compensated by a negative corresponding entry (credit note).

Then what if the problem is with the date of the entry ? How to compensate a wrong date ?

More generally what is the best strategy to rollback a database longtime after data have been committed ? and how to rollback when database is synchronized over multiple systems ?

NB : I posted first in stackoverflow.com but I believe here is a more appropriate place.


Viewing all articles
Browse latest Browse all 136

Trending Articles