×

DATABASE MANAGEMENT METHOD, DATABASE SYSTEM AND MEDIUM

  • US 20150039558A1
  • Filed: 10/17/2014
  • Published: 02/05/2015
  • Est. Priority Date: 04/18/2012
  • Status: Abandoned Application
First Claim
Patent Images

1. A method of managing a database which hierarchically includes higher-level and lower-level master nodes,the higher-level and lower-level master nodes each having a database and an index for searching the database,the method comprising:

  • when an update instruction for updating the database is issued in any of the lower-level master nodes, generating, by a database processing unit of the lower-level master node, a write set that includes a shadow copy expanded in a memory of the lower-level master node and showing updated contents of the database resulted by the update instruction, a heap tuple map showing a row that is a target of the update instruction, and a shadow index showing contents to be added in the index when the database is updated, and sending the generated write set to a higher-level master node;

    comparing, by a database processing unit of the higher-level master node, the heap tuple map of the write set received from the lower-level master node with the database of the higher-level master node, and verifying whether a corresponding row of the database that is registered as a target has been updated by a different write set;

    aborting, by the database processing unit of the higher-level master node, the write set when the update has been performed, and when the update has not been performed, updating the database of the higher-level master node and the index of the database by using the shadow copy and the shadow index, and generating, by a transaction log processing unit of the higher-level master node, a record of this update as a transaction log;

    distributing, by the higher-level master node, the transaction log to the lower-level master nodes including the lower-level master node which has sent the write set; and

    updating, by a transaction log processing unit of the lower-level master node, the database of the lower-level master node and the index of the database based on the received transaction log.

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