Data synchronization method based on master-slave asynchronous replication architecture of relational database
An asynchronous replication and database technology, applied in relational databases, database distribution/replication, database models, etc., can solve the problems of data synchronization delay time increase, increase, synchronization time increase, etc., to achieve the effect of reducing delay time and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] like figure 1 As shown, a data synchronization method based on the master-slave asynchronous replication architecture of the relational database, on the basis of not affecting the data consistency and integrity between the master-slave database nodes of the relational database, through the log of the data change in the same transaction The record is divided into multiple segments according to the multiple of the data page size, and a section point segment point is generated in the log of the master node data change. When a segment of data in the entire transaction is changed to the marked segment point, the segment of data will be Changes are copied to the log of the slave database node until the master node transaction commits and all data changes are completed, and the slave node also starts to complete the last part of the segmented data copy until the commit, thus saving the asynchronous replication architecture, which must be submitted at the master node The time t...
Embodiment 2
[0050] like figure 1As shown, a data synchronization method based on a relational database master-slave asynchronous replication architecture specifically includes:
[0051] 1. The deployment function obtains the data change size x of the master database node in the master-slave asynchronous replication architecture of the relational database, in bytes;
[0052] 2. The deployment function obtains the current database data page size of the master database node in the master-slave asynchronous replication architecture of the relational database, in bytes, and the default database page size is 16384 bytes;
[0053] 3. The deployment function obtains whether the data change generated by the database transaction in the master-slave asynchronous replication architecture of the relational database meets the volume size standard of the segment. If not, the traditional asynchronous replication is performed directly. If it meets the segmented data body quantity standard, get the number...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
