Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Autonomically generating a query implementation that meets a defined performance specification

a database and performance specification technology, applied in the field of computer systems, can solve the problems of inability to detect the performance performance of an access plan when it performs poorly, and the same access plan may experience a marked slowdown in query performance,

Inactive Publication Date: 2008-09-04
IBM CORP
View PDF7 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

The invention is a system that optimizes the performance of database queries. It allows a user to specify the performance requirements for a query and create an access plan to execute the query. If the actual performance does not meet the requirements, the system automatically generates a new access plan until a suitable one is found. The system stores the best performing access plan in a cache for future reference. This invention improves the efficiency and speed of database queries.

Problems solved by technology

Note, however, that the performance of the query may be fine at the point in time when the access plan was generated, but due to changes in the database, software, etc., the same access plan may experience a marked slowdown in query performance.
In addition, because the initial access plan is based on an estimate of performance instead of on actual execution time, the initial access plan may not be a very efficient implementation of the query.
In the prior art, there is no way for the database optimizer to detect when an access plan performs poorly.
Without a way to specify desired performance for a query and autonomically generate a new access plan when the current access plan no longer satisfies the desired performance, the database industry will continue to suffer from undue performance penalties by continually reusing access plans that provide poor performance in executing a query.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Autonomically generating a query implementation that meets a defined performance specification
  • Autonomically generating a query implementation that meets a defined performance specification
  • Autonomically generating a query implementation that meets a defined performance specification

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

1.0 Overview

[0021]The present invention relates to optimizing database queries. For those not familiar with databases or queries, this Overview section will provide background information that will help to understand the present invention.

[0022]Known Databases and Database Queries

[0023]There are many different types of databases known in the art. The most common is known as a relational database (RDB), which organizes data in tables that have rows that represent individual entries or records in the database, and columns that define what is stored in each entry or record.

[0024]To be useful, the data stored in databases must be able to be efficiently retrieved. The most common way to retrieve data from a database is to generate a database query. A database query is an expression that is evaluated by a database manager. The expression may contain one or more predicate expressions that are used to retrieve data from a database. For example, let's assume there is a database for a company...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A database query optimizer allows specifying a performance specification for a query. When an access plan is created, the actual performance for executing the query using the access plan is determined and compared to the performance specification for the query. If the actual performance does not satisfy the performance specification for the query, the query optimizer autonomically generates a different access plan to see if the performance improves. If an access plan that meets the performance specification is generated, the new access plan is stored in the access plan cache for the query. If no access plan can be generated that meets the performance specification for the query, the access plan that provided the best performance is selected and stored in the access plan cache for the query.

Description

CROSS-REFERENCE TO PARENT APPLICATION[0001]This patent application is a continuation of a “Apparatus and Method for Autonomically Generating a Query Implementation that Meets a Defined Performance Specification,” U.S. Ser. No. 10 / 860,402 filed on Jun. 3, 2004, which is incorporated herein by reference.BACKGROUND OF THE INVENTION[0002]1. Technical Field[0003]This invention generally relates to computer systems, and more specifically relates to apparatus and methods for optimizing the run-time performance of a database query.[0004]2. Background Art[0005]Since the dawn of the computer age, computers have evolved and become more and more powerful. In our present day, computers have become indispensable in many fields of human endeavor including engineering design, machine and process control, information storage and retrieval, and office computing. One of the primary uses of computers is for information storage and retrieval.[0006]Database systems have been developed that allow a comput...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(United States)
IPC IPC(8): G06F17/30G06F40/00
CPCG06F17/30463G06F17/30433G06F16/24524G06F16/24542
Inventor DAY, PAUL REUBENMURAS, BRIAN ROBERTRYG, ANNE MARIE
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products