IP Library › Granted Patent US 10,929,370
Granted Patent B2
US 10,929,370 · App. 15/099,577 · Granted Feb 23, 2021

Index maintenance management of a relational database management system

Inventors: Saghi Amirsoleymani (Mountain View, CA); John J. Campbell (Alton, GB); Andrei F. Lurie (San Jose, CA); Terence P. Purcell (Springfield, IL)
Assignee: International Business Machines Corporation
G06F16/2272
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,929,370
App. No.
15/099,577
Filed
Apr 14, 2016
Granted
Feb 23, 2021
Kind
B2
Art Unit
2154
USPC
707/696
Abstract

Disclosed aspects relate to index maintenance management of a relational database management system having a set of indexes. A subset of the set of indexes, which is indicated as a non-critical index subset, is detected with respect to the set of indexes. Related to maintenance of the subset of the set of indexes, a determination is made to perform an index maintenance impact action. Corresponding to the subset of the set of indexes, the index maintenance impact action is performed.

Claims (59)

1. A computer-implemented method for index maintenance management of a relational database management system having a set of indexes with respect to a relational database table, the method comprising:

detecting, with respect to the set of indexes, a subset of the set of indexes which is indicated as a non-critical index subset;

determining, related to maintenance of the subset of the set of indexes, to perform an index maintenance impact action, wherein determining to perform the index maintenance action comprises:

determining a usage of the subset of the set of indexes is below a threshold usage over a threshold period of time;

selecting the index maintenance action based on the usage being below the threshold usage over a threshold period of time; and

performing the index maintenance impact action to the subset of the set of indexes to create an updated set of indexes, wherein the index maintenance impact action includes selecting a deferred maintenance status for the subset of the set of indexes; and

executing a query of the updated set of indexes.

2. The method of claim 1 , wherein the index maintenance impact action includes benefitting resource usage associated with an access request to the relational database table.

3. The method of claim 2 , further comprising:

receiving the access request to the relational database table; and

processing, in response to receiving the access request to the relational database table, maintenance of the set of indexes using the deferred maintenance status to bypass synchronous maintenance of the subset of the set of indexes.

4. The method of claim 3 , further comprising:

detecting a triggering event related to maintenance of the subset of the set of indexes; and

processing, in response to detecting the triggering event, maintenance of the subset of the set of indexes using an asynchronous technique.

5. The method of claim 4 , wherein the triggering event includes achieving a selection from a group consisting of at least one of: a threshold temporal period, a threshold overflow page size, or a threshold change log size.

6. The method of claim 1 , wherein the subset of the set of indexes has a set of input data and an index definition, and wherein the index maintenance impact action further includes:

removing the set of input data from the subset of the set of indexes to benefit resource usage associated with an access request to the relational database table.

7. The method of claim 6 , further comprising:

receiving the access request to the relational database table; and

processing, in response to receiving the access request to the relational database table, maintenance of the set of indexes without maintenance to the subset of the set of indexes.

8. The method of claim 7 , further comprising:

establishing, for the subset of the set of indexes, a definition-only status.

9. The method of claim 8 , wherein the definition-only status has the index definition for use to rebuild the subset of the set of indexes in response to a rebuild request, and wherein the index definition is stored in a catalog.

10. The method of claim 9 , wherein establishing the definition-only status includes:

marking, in the catalog, the subset of the set of indexes to indicate a maintenance restriction associated with the access request to the relational database table.

11. The method of claim 8 , further comprising:

detecting, with respect to a query optimizer, a rebuild request in response to removing the set of input data; and

rebuilding, using the index definition, the subset of the set of indexes to include the set of input data.

12. The method of claim 1 , wherein the index maintenance impact action includes:

hiding, with respect to a query optimizer, the subset of the set of indexes to benefit resource usage associated with a query plan development operation.

13. The method of claim 1 further comprising:

selecting a deferred maintenance status for the subset of the set of indexes to benefit resource usage associated with an access request to the relational database table.

14. The method of claim 12 , wherein the subset of the set of indexes has a set of input data and an index definition, and further comprising:

removing the set of input data from the subset of the set of indexes to benefit resource usage associated with an access request to the relational database table.

15. The method of claim 1 , wherein detecting the subset of the set of indexes which is indicated as the non-critical index subset includes:

identifying, to benefit resource usage, the subset of the set of indexes based on a selection from a group consisting of at least one of: a uniqueness factor, a clustering factor, an application usage factor, or a user-provided factor; and

flagging, for utilization as the non-critical index subset, the subset of the set of indexes.

16. The method of claim 1 , wherein determining to perform the index maintenance impact action includes:

comparing a set of profile usage data for the non-critical index subset with a set of threshold usage data; and

computing that a profile value of the set of profile usage data exceeds a threshold value of the set of threshold usage data.

17. The method of claim 1 , wherein the detecting, the determining, and the performing each occur in an automated fashion without user intervention.

18. A system for index maintenance management of a relational database management system having a set of indexes with respect to a relational database table, the system comprising:

a memory having a set of computer readable computer instructions, and a processor for executing the set of computer readable instructions, the set of computer readable instructions including:

detecting, with respect to the set of indexes, a subset of the set of indexes which is indicated as a non-critical index subset;

determining, related to maintenance of the subset of the set of indexes, to perform an index maintenance impact action, wherein determining to perform the index maintenance action comprises:

determining a usage of the subset of the set of indexes is below a threshold usage over a threshold period of time;

selecting the index maintenance action based on the usage being below the threshold usage over a threshold period of time; and

performing the index maintenance impact action to the subset of the set of indexes to create an updated set of indexes, wherein the index maintenance impact action includes selecting a deferred maintenance status for the subset of the set of indexes; and

executing a query of the updated set of indexes.

19. A computer program product for index maintenance management of a relational database management system having a set of indexes with respect to a relational database table, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a processor to cause the processor to perform a method comprising:

detecting, with respect to the set of indexes, a subset of the set of indexes which is indicated as a non-critical index subset;

determining, related to maintenance of the subset of the set of indexes, to perform an index maintenance impact action, wherein determining to perform the index maintenance action comprises:

determining a usage of the subset of the set of indexes is below a threshold usage over a threshold period of time;

selecting the index maintenance action based on the usage being below the threshold usage over a threshold period of time; and

performing the index maintenance impact action to the subset of the set of indexes to create an updated set of indexes, wherein the index maintenance impact action includes selecting a deferred maintenance status for the subset of the set of indexes; and

executing a query of the updated set of indexes.

20. The computer program product of claim 19 , wherein at least one of:

the program instructions are stored in the computer readable storage medium in a data processing system, and wherein the program instructions were downloaded over a network from a remote data processing system; or

the program instructions are stored in the computer readable storage medium in a server data processing system, and wherein the program instructions are downloaded over a network to a remote data processing system for use in a computer readable storage medium with the remote data processing system.

Assignments (2)
CORRECTIVE ASSIGNMENT TO CORRECT THE SIGNATURE AND EXECUTION DATE FOR FIRST NAMED INVENTOR PREVIOUSLY RECORDED ON REEL 038288 FRAME 0676. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT OF ASSIGNORS INTEREST FOR 15099577. Recorded May 9, 2016
From: AMIRSOLEYMANI, SAGHI; CAMPBELL, JOHN J.; LURIE, ANDREI F.; PURCELL, TERENCE P.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 038852/0555 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 14, 2016
From: AMIRSOLEYMANI, SAGHI; CAMPBELL, JOHN J.; LURIE, ANDREI F.; PURCELL, TERENCE P.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 038288/0676 →
Continuity (1)
Related Publication 20170300517A1 · Oct 19, 2017