主权项 |
1. A method, comprising:
receiving, by a computing device, a first table and a second table from a first database; augmenting, by the computing device, the first table by adding a first synchronization key, wherein the first synchronization key identifies a first row in the first table; augmenting, by the computing device, the second table by adding a second synchronization key, wherein the second synchronization key identifies a second row in the second table; recording, by the computing device, a relationship between the first synchronization key and the second synchronization key, wherein the relationship is established by a common identifier in the first and second tables; recording, by the computing device, a timestamp for the first synchronization key, wherein the timestamp indicates an access to the first row; and synchronization the first database with a second database by performing a comparison of the first synchronization key and the timestamp with an additional synchronization key and an additional timestamp for the additional synchronization key, wherein the additional synchronization key and the additional timestamp for the additional synchronization key are from the second database, whereby the first row identified by the first synchronization key is synchronized due to the comparison and the second row identified by the second synchronization key is synchronized based on the relationship between the first synchronization key and the second synchronization key. |