×

Data synchronization with minimal table lock duration in asynchronous table replication

  • US 10,185,632 B2
  • Filed: 03/13/2015
  • Issued: 01/22/2019
  • Est. Priority Date: 11/25/2014
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method for minimizing table lock duration during lost change resynchronization between a source table and a replica table, comprising:

  • detecting, by at least one processor, a restart at a source node or a replica node, the source node having a source table and the replica node having a replica table;

    locking, by the at least one processor, the source table based on the detection;

    creating, after the locking, by the at least one processor, a first database transaction performing a lost change resynchronization operation, wherein the lost change resynchronization operation is assigned a database transaction identifier and a timestamp representing the creation time of the first database transaction;

    unlocking, after the creating, by the at least one processor, the source table;

    comparing, by the at least one processor, the first database transaction to a second database transaction based on the timestamp of the first database transaction; and

    selecting, by the at least one processor, for execution the first database transaction or the second database transaction based on the comparison;

    wherein at least one of the detecting, locking, creating, unlocking, comparing, and selecting are performed by one or more computers.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×