Management of updates in a database system
First Claim
Patent Images
1. A system comprising:
- a memory;
one or more processors; and
program code including a query optimizer, the program code configured to be executed by the one or more processors to process a database query, the program code configured to;
structure, using a database management system (DBMS), a database to have a table, an index associated with the table, and a log associated with the index;
order entries of the log, based on a key;
receive, with a parser, a maintenance request related to the index;
determine, with the DBMS, that the index is being searched;
add, using a batch process, the maintenance request to the log in response to determining that the index is not being searched, determining that the index is not being searched including determining that a pipeline is either closed or open and inactive between an application and the index, wherein the pipeline being open and inactive includes the pipeline being open, but not actively in use by a search request associated with the application and the index, wherein the maintenance request is a change to the index and the maintenance request is used to determine delays in maintenance of index;
determine, with the DBMS, that the index is being searched; and
account for the maintenance request, in response to determining that the index is being searched, wherein account for the maintenance request includes update the index with the maintenance request and resume searching.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, system, and computer program product to efficiently maintain a database is disclosed. The method, system, and computer program product may include structuring the database to have a table, an index associated with the table, and a log associated with the index. The method, system, and computer program product may include receiving a maintenance request related to the index. The method, system, and computer program product may include accounting for the maintenance request when the index is being searched. The method, system, and computer program product may include adding the maintenance request to the log when the index is not being searched.
48 Citations
8 Claims
-
1. A system comprising:
-
a memory; one or more processors; and program code including a query optimizer, the program code configured to be executed by the one or more processors to process a database query, the program code configured to; structure, using a database management system (DBMS), a database to have a table, an index associated with the table, and a log associated with the index; order entries of the log, based on a key; receive, with a parser, a maintenance request related to the index; determine, with the DBMS, that the index is being searched; add, using a batch process, the maintenance request to the log in response to determining that the index is not being searched, determining that the index is not being searched including determining that a pipeline is either closed or open and inactive between an application and the index, wherein the pipeline being open and inactive includes the pipeline being open, but not actively in use by a search request associated with the application and the index, wherein the maintenance request is a change to the index and the maintenance request is used to determine delays in maintenance of index; determine, with the DBMS, that the index is being searched; and account for the maintenance request, in response to determining that the index is being searched, wherein account for the maintenance request includes update the index with the maintenance request and resume searching. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
Specification