Data schema discovery with query optimization
AssigneeInternational Business Machines Corporation
InventorsJuliana Medeiros Destro, Eduardo Luiz Lopes, Helio Pinheiro E Mota
Life of this patent
Estimating the term…
Abstract
Embodiments for implementing schema discovery and query optimization by a processor. A schema may be created from one or more histograms of one or more keys and data types of a database and capable of being adapted and recalculated. One or more queries may be assembled according to the schema. One or more indexes and views may be suggested according to the one or more queries and the schema.
Claims9
A method for implementing schema discovery and query optimization by a processor, comprising:
- creating a schema from one or more histograms of one or more keys and data types of a database, wherein the schema is capable of being adapted and recalculated;
- assembling one or more queries according to the schema by receiving an input of the one or more queries using a prefix notation, and reversing the prefix notation prior to processing the one or more queries;
- processing the one or more queries having the reversed prefix notation by translating the one or more queries into a query JavaScript Object Notation (JSON) object;
- suggesting one or more indexes and views according to the one or more queries and the schema;
- and
- generating the one or more indexes and views for one or more similar data types according to a usage rank, the data types, and the schema received from a metadata repository.
A system for implementing schema discovery and query optimization, comprising:
- one or more computers having one or more hardware processors in communication with one or more memory, the one or more memory storing executable instructions that when executed by the one or more hardware processors cause the one or more hardware processors to:
- create a schema from one or more histograms of one or more keys and data types of a database, wherein the schema is capable of being adapted and recalculated;
- assemble one or more queries according to the schema by receiving an input of the one or more queries using a prefix notation, and reversing the prefix notation prior to processing the one or more queries;
- process the one or more queries having the reversed prefix notation by translating the one or more queries into a query JavaScript Object Notation (JSON) object;
- suggest one or more indexes and views according to the one or more queries and the schema;
- and
- generate the one or more indexes and views for one or more similar data types according to a usage rank, the data types, and the schema received from a metadata repository.
A computer program product for implementing schema discovery and query optimization by a processor, the computer program product comprising a non-transitory computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:
- an executable portion that creates a schema from one or more histograms of one or more keys and data types of a database, wherein the schema is capable of being adapted and recalculated;
- an executable portion that assembles one or more queries according to the schema by receiving an input of the one or more queries using a prefix notation, and reversing the prefix notation prior to processing the one or more queries;
- an executable portion that processes the one or more queries having the reversed prefix notation by translating the one or more queries into a query JavaScript Object Notation (JSON) object;
- an executable portion that suggests one or more indexes and views according to the one or more queries and the schema;
- and
- an executable portion that generates the one or more indexes and views for one or more similar data types according to a usage rank, the data types, and the schema received from a metadata repository.
Dependencies are inferred from the claim text.