Access plan for a database query
AssigneeInternational Business Machines Corporation
InventorsAdam D. Braham, Andrew P. Passe
Life of this patent
Estimating the term…
Abstract
A system and method of creating an access plan for a database query is disclosed. The system and method include identifying a first portion of a column of a table of a database. The first portion of the column may be in a select statement of the database query. The system and method include estimating a first statistical value for the column. The estimating may occur by analyzing a second portion of the column. The system and method include generating the access plan to predict a characteristic of a set of results for the database query. In generating the access plan, the first statistical value for the column may be used.
Claims10
A computer-implemented method of creating an access plan for a database query, the method comprising:
- identifying a first portion of a column of a table of a database in a select statement of the database query;
- estimating, by analyzing a second portion of the column, using an analytics engine, a first statistical value for the column, the estimating including:
- receiving, by the analytics engine, data from the table of the database;
- receiving, by the analytics engine, for natural language processing, a specific query related to data from the table of the database;
- resolving, by the analytics engine, using natural language processing, the specific query, wherein resolving the specific query includes comparing a corpus and data from the table of the database;
- and
- determining, by the analytics engine, in response to resolving the specific query, the first statistical value for the column;
- and
- generating, using the first statistical value for the column, the access plan to predict a characteristic of a set of results for the database query.
A computer-implemented method of creating an access plan for a database query, the method comprising:
- determining a statistics table is unsuitable for creating the access plan for the database query;
- identifying a first portion of a column of a table of a database in a select statement of the database query;
- estimating, by analyzing a second portion of the column, using an analytics engine, including a column header of the column, a cardinality value for the column, the estimating including:
- receiving, by the analytics engine, data from the table of the database;
- receiving, by the analytics engine, for natural language processing, a specific query related to data from the table of the database;
- resolving, by the analytics engine, using natural language processing, the specific query, wherein resolving the specific query includes comparing a corpus and data from the table of the database;
- and
- determining, by the analytics engine, in response to resolving the specific query, the cardinality value for the column;
- and
- generating, using the cardinality value for the column, the access plan to predict a characteristic related to a number of rows of a set of results for the database query.
Dependencies are inferred from the claim text.