发明名称 Database method for B+ tree based on PRAM
摘要 A Database method for a B+ tree based on a PRAM. The database method divides each node into two areas, area 1 and area 2. A key value is inserted/retrieved/deleted for the each node. Inserting the key value requires firstly inserting a new key value to area 2 if area 2 in the node is not in a full state. Retrieving the key value requires identifying whether the node is a leaf node. If the node is a leaf node, the key value is retrieved from area 1 and area 2 sequentially. Deleting the key value requires merging area 1 and area 2 in the node, and deleting the key value in the merged node. The method enhances durability and data processing capability.
申请公布号 US9454550(B2) 申请公布日期 2016.09.27
申请号 US201214235001 申请日期 2012.12.13
申请人 INDUSTRY ACADEMIC COOPERATION FOUNDATION OF YEUNGNAM UNIVERSITY;ADVANCED INSTITUTES OF CONVERGENCE TECHNOLOGY 发明人 Choi Gyu Sang;On Byung-Won;Lee In Gyu
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Blakely Sokoloff Taylor & Zafman LLP 代理人 Blakely Sokoloff Taylor & Zafman LLP
主权项 1. A Database method for a B+ tree having a predetermined B+ tree construction based on a processor executing instructions in a memory for processing data in a data storage space of a phase-change non-volatile random access memory (PRAM), comprising the operations of: dividing the data storage space in each of a plurality of nodes of a B+ tree into an area 1 and an area 2, wherein each node includes a plurality of data records, a location which specifies the total number of data records in the node and a pointer to the location, and the area 1 and the area 2 each include a number of data records in the node, wherein the total number of records in area 1 and area 2 is equal to the total number of data records in the node; sequentially accessing said plurality of data records; and inserting, retrieving, and deleting a certain key value with respect to each of the sequentially accessed data records, and wherein the operation of inserting the key value inserts a new key value to the area 2 if the area 2 in the node is not in a full state, and moves a certain key value to the area 1 if the area 2 is in a full state; wherein the operation of retrieving the key value identifies whether the node is a leaf node, and sequentially retrieving the area 1 data records and the area 2 data records if the node is a leaf node, and if the node is not a leaf node, selecting an approximate key value among the key values from the area 1 and the area 2, moving the selected value to a record in the node below indicated by the key value, and repeating the operation of moving, until the node is a leaf node, and then, terminating the retrieving the key value; wherein the operation of deleting the key value merges area 1 data records and area 2 data records in the node, and deletes the key value in the merged node, wherein said executing modifies the B+ tree construction which reduces a number of write operations to said PRAM and minimizes a concentration of write operations to a certain area of said PRAM.
地址 Gyeongsangbuk-Do KR