Now A is server, A has database db, B is client, and B also has the same database db as A.
If the data on A changes, then the database db on B also changes as the db on A changes. How do you achieve this? Is there any source code for this?
1. To mark the synchronized and unsynchronized data. Available methods are time, dedicated update flags, self-incrementing ID, etc.
2.Synchronize the marked data.
3. Modify the mark.
A little bit like asking how to put the elephant in the refrigerator. :)