Data replication method and apparatus, computer device, and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorHaixiang LI
Life of this patent
Estimating the term…
Loading patent…
AssigneeTencent Technology (Shenzhen) Company Limited
InventorHaixiang LI
Estimating the term…
This application discloses a data replication method and apparatus, a computer device, and a storage medium, and belongs to the field of database technologies. The method includes: adding, when a commitment operation of a transaction is detected, historical state data of the transaction to a data queue; adding at least one piece of historical state data in the data queue to a transmission buffer; and replicating, when a first preset condition is met, the at least one piece of historical state data in the transmission buffer to a cluster device. In this application, a node device does not need to convert an original historical state data format into a log format, and the cluster device does not need to parse a log into an original data format for storage, thereby avoiding a cumbersome log replay procedure, and improving the efficiency of the data replication process.
A data replication method, performed by a computer device, the method comprising:
A computer device, comprising a processor and a memory, the memory storing at least one instruction, the at least one instruction being loaded and executed by the processor to perform a plurality of operations comprising:
A non-transitory computer-readable storage medium, storing at least one instruction, the at least one instruction being loaded and executed by a processor of a computer device to perform a plurality of operations comprising:
Dependencies are inferred from the claim text.