High concurrency and recoverable B-tree index management method and system
First Claim
1. A B-tree index management system for a database management system to access the same B-tree index by a plurality of transactions, wherein:
- when one of the plurality of transactions executes an index structure modification operation, including the update operations on a plurality of B-tree index nodes, by inserting an index constituent element to the page for data insertion or update,if said transaction is intercepted before said index structure modification operation is completed, said index structure modification operation still not completed is made complete and rolled back to guarantee the update result by another transaction made to the nodes associated with said index structure modification operation.
1 Assignment
0 Petitions
Accused Products
Abstract
A database management system for accessing the same B-tree index by a plurality of transactions. When a transaction is intercepted at the intermediate stage of an index structure modification process executed by an index structure modification execution unit, the logs of the index structure modification operation at rollback is analyzed by an index structure modification operation log analysis unit. Then, an incomplete index structure change process is completed by an uncompleted index structure modification operation completion and control unit, i.e., the roll-forward operation is performed. In this manner, it is possible to provide an efficient access to the B-tree index wherein even if the tree structure modification operation by one transaction is intercepted at its intermediate stage, another transaction is allowed to access the B-tree index thereafter.
165 Citations
8 Claims
-
1. A B-tree index management system for a database management system to access the same B-tree index by a plurality of transactions, wherein:
-
when one of the plurality of transactions executes an index structure modification operation, including the update operations on a plurality of B-tree index nodes, by inserting an index constituent element to the page for data insertion or update, if said transaction is intercepted before said index structure modification operation is completed, said index structure modification operation still not completed is made complete and rolled back to guarantee the update result by another transaction made to the nodes associated with said index structure modification operation. - View Dependent Claims (2)
-
-
3. A B-tree index management system for a database management system to access the same B-tree index by a plurality of transactions, wherein:
-
when one of the plurality of transactions executes an index structure modification operation, including the update operations on a plurality of B-tree index nodes, by inserting an index constituent element to the page for data insertion or update, said B-tree management system comprises; means for writing a record including information necessary to execute said index structure modification operation, at the start of said index structure modification operation, and writing a record representing the current stage of said index structure modification operation when each process constituting said index structure modification operation is executed; means for rolling forward said index structure modification operation, said means for rolling forward including analysis means for determining operations necessary to complete said index structure modification operation when said one transaction is intercepted before said index structure modification operation is completed, in accordance with said records corresponding to said each operation associated with said index structure modification operation and said record corresponding to said start of said index structure modification operation; and means for rolling back a process for an index constituent element inserted or deleted after rolling forward said index structure modification operation.
-
-
4. A method for accessing a B-tree index wherein an index structure modification operation updates a plurality of B-tree index nodes by inserting an index constituent element to the page of the data insertion or update said method comprising the steps of:
-
writing a record including information necessary to execute said index structure modification operation, at the start of said index structure modification operation; and writing a record representing the current stage of said index structure modification operation when each process constituting said index structure modification operation is executed; rolling forward said index structure modification operation, including analysis for determining operations necessary to complete said index structure modification operation when said one transaction is intercepted before said index structure modification operation is completed, in accordance with said records corresponding to said each operation or associated with said index structure modification operation and said record corresponding to said start of said index structure modification operation; and rolling back a process for an index constituent element inserted or deleted after rolling forward said index structure modification operation. - View Dependent Claims (5)
-
-
6. A fault recovery B-tree index management method of recovering an access fault which occurs during an index structure modification operation and a database management system to access the same B-tree index by a plurality of transactions, wherein the method comprises the steps of
when one of the plurality of transactions executes an index structure modification operation including the update operations on a plurality of B-tree index nodes, inserting an index constituent element to the page for data insertion or update, when said transaction is intercepted before a B-tree index structure modification operation is completed, completing the index structure modification operation using roll forward log records taken for the period of the structure index structure modification operation and then rolling back an insertion key to gaurantee the update result by another transaction made to nodes associated with the index structure modification operation.
Specification