Improving performance of database queries
First Claim
Patent Images
1. A method for improving performance for SQL queries, comprising:
- receiving a request for advice in a computer having a processor regarding one or more summary tables to be built for a cube model metadata object, wherein the request specifies one or more types of queries intended to be issued for the cube model metadata object, and wherein the one or more types of queries include extract, drilldown, report, and drillthrough;
obtaining multidimensional metadata associated with the cube model metadata object including measures;
forming measure sets with the measures by creating one measure set with symmetric measures and, for each group of asymmetric measures with a same dimensionality, creating an additional measure set;
for each of the measure sets,identifying one or more summary tables recommended to be built based on the obtained multidimensional metadata and based on the one or more types of queries intended to be issued, wherein identifying the one or more summary tables further comprises;
rating a cost of creating a slice within one of the summary tables based on an estimated number of rows in the slice, an estimated size of the slice, a maximum row width of the slice, a number of columns in the slice, and an amount of time required to build the slice; and
identifying one or more indexes recommended to be created for the one or more summary tables based on the obtained multidimensional metadata; and
generating one or more statements to be executed to create the recommended one or more summary tables and the recommended one or more indexes.
1 Assignment
0 Petitions
Accused Products
Abstract
A system, method, and program for improving the performance for SQL queries. Multidimensional metadata associated with a cube model metadata object is obtained. One or more summary tables to be built are automatically identified based on the obtained multidimensional metadata. One or more indexes to create are automatically identified based on the obtained multidimensional metadata.
291 Citations
57 Claims
-
1. A method for improving performance for SQL queries, comprising:
-
receiving a request for advice in a computer having a processor regarding one or more summary tables to be built for a cube model metadata object, wherein the request specifies one or more types of queries intended to be issued for the cube model metadata object, and wherein the one or more types of queries include extract, drilldown, report, and drillthrough; obtaining multidimensional metadata associated with the cube model metadata object including measures; forming measure sets with the measures by creating one measure set with symmetric measures and, for each group of asymmetric measures with a same dimensionality, creating an additional measure set; for each of the measure sets, identifying one or more summary tables recommended to be built based on the obtained multidimensional metadata and based on the one or more types of queries intended to be issued, wherein identifying the one or more summary tables further comprises; rating a cost of creating a slice within one of the summary tables based on an estimated number of rows in the slice, an estimated size of the slice, a maximum row width of the slice, a number of columns in the slice, and an amount of time required to build the slice; and identifying one or more indexes recommended to be created for the one or more summary tables based on the obtained multidimensional metadata; and generating one or more statements to be executed to create the recommended one or more summary tables and the recommended one or more indexes. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. An article of manufacture comprising a computer readable storage medium storing a program for improving performance for SQL queries, wherein the program when executed by a processor on a computer causes operations to be performed, the operations comprising:
-
receiving a request for advice regarding one or more summary tables to be built for a cube model metadata object, wherein the request specifies one or more types of queries intended to be issued for the cube model metadata object, and wherein the one or more types of queries include extract, drilldown, report, and drillthrough; obtaining multidimensional metadata associated with the cube model metadata object including measures; forming measure sets with the measures by creating one measure set with symmetric measures and, for each group of asymmetric measures with a same dimensionality, creating an additional measure set; for each of the measure sets, identifying one or more summary tables recommended to be built based on the obtained multidimensional metadata and based on the one or more types of queries intended to be issued, wherein the operations for identifying the one or more summary tables further comprise; rating a cost of creating a slice within one of the summary tables based on an estimated number of rows in the slice, an estimated size of the slice, a maximum row width of the slice, a number of columns in the slice, and an amount of time required to build the slice; and identifying one or more indexes recommended to be created for the one or more summary tables based on the obtained multidimensional metadata; and generating one or more statements to be executed to create the recommended one or more summary tables and the recommended one or more indexes. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38)
-
-
39. A system for improving performance for SQL queries, comprising:
-
a computer system having hardware logic for; receiving a request for advice regarding one or more summary tables to be built for a cube model metadata object, wherein the request specifies one or more types of queries intended to be issued for the cube model metadata object, and wherein the one or more types of queries include extract, drilldown, report, and drillthrough; obtaining multidimensional metadata associated with the cube model metadata object including measures; forming measure sets with the measures by creating one measure set with symmetric measures and, for each group of asymmetric measures with a same dimensionality, creating an additional measure set; for each of the measure sets, identifying one or more summary tables recommended to be built based on the obtained multidimensional metadata and based on the one or more types of queries intended to be issued, wherein for identifying the one or more summary tables, the hardware logic implements code for; rating a cost of creating a slice within one of the summary tables based on an estimated number of rows in the slice, an estimated size of the slice, a maximum row width of the slice, a number of columns in the slice, and an amount of time required to build the slice; and identifying one or more indexes recommended to be created for the one or more summary tables based on the obtained multidimensional metadata; and generating one or more statements to be executed to create the recommended one or more summary tables and the recommended one or more indexes. - View Dependent Claims (40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57)
-
Specification