IP Library Granted Patent US 8,346,761
Granted Patent B2
US 8,346,761 · App. 10/911,849 · Granted Jan 1, 2013

Method and system for data mining for automatic query optimization

Assignee: International Business Machines Corporation
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 8,346,761
App. No.
10/911,849
Granted
Jan 1, 2013
Kind
B2
Abstract

A database monitor tracks performance statistics and information about the execution of different SQL statements. A query optimizer benefits from these statistics when generating an access plan. In particular, the query optimizer, upon receiving an SQL statement, searches the records of the database monitor for similar SQL statements that have previously been executed. As part of determining the best access plan for the current SQL statement, the query optimizer considers the information retrieved from the database monitor. In this way, the access plan that is generated can automatically be tuned based on empirical performance evidence.

Claims (10)

1. A method for generating an access plan, the method comprising the steps of:

maintaining in non-volatile memory a respective set of past performance statistics for each of a plurality of previously executed database queries;

identifying a set of host variables referenced within those respective sets of past performance statistics that relate to data skew performance degradation; and

forcing re-optimization to generate and store a new access plan for a current SQL statement if the current database query includes one or more host variables within the identified set of host variables.

2. The method of claim 1 , further comprising the step of:

determining if a current database query includes one or more of the identified set of host variables.

3. The method of claim 1 , wherein the step of identifying further includes the step of:

identifying a set of host variables references within those respective sets of past performance statistics that executed slower than estimated.

4. The method of claim 3 , wherein the step of identifying further includes the step of:

identifying the set of host variables references within those respective sets of past performance statistics that executed between 25 and 100 times slower than estimated.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 24, 2018
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: WORKDAY, INC.
Reel/Frame 044721/0844 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 17, 2004
From: MURAS, BRIAN ROBERT; SANTOSUOSSO, JOHN MATTHEW
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 015063/0591 →
Continuity (1)
Related Publication 20060031189A1 · Feb 9, 2006