Data update counting method, data count query method and related devices
The embodiment of the invention discloses a data updating counting method, a data counting query method and a related device, and the method comprises the steps: determining a plurality of databases which are copies of each other; setting a counter in each database, wherein the counter is used for r...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
26.11.2021
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The embodiment of the invention discloses a data updating counting method, a data counting query method and a related device, and the method comprises the steps: determining a plurality of databases which are copies of each other; setting a counter in each database, wherein the counter is used for recording a count value of the database where the counter is located and recording count values of other databases; when it is detected that data of a target database in the multiple databases is updated, updating a counting value of the target database in a counter of the target database to obtain a target counting value; and synchronizing the target count value to counters of other databases to update the count value of the target database in the counters of other databases to the target count value. Due to the fact that the counter in each database records the counting value of the database where the counter is located and the counting values of other databases, updating of the counters in the multiple databases |
---|---|
Bibliography: | Application Number: CN202110988011 |