Generating statistics for temporary tables during query optimization
First Claim
Patent Images
1. A method of optimizing a database query, the method comprising:
- (a) for a first database query where at least one field is materialized into a first temporary table during execution of the first database query, generating a first statistic for the first temporary table prior to creation of the first temporary table; and
(b) optimizing the first database query using the first statistic.
2 Assignments
0 Petitions
Accused Products
Abstract
An apparatus, program product and method generate at least one statistic for a temporary table during optimization of a database query before the temporary table is created. By doing so, optimization can proceed on a database query irrespective of the fact that the temporary table may not be materialized until the database query is ultimately executed.
51 Citations
24 Claims
-
1. A method of optimizing a database query, the method comprising:
-
(a) for a first database query where at least one field is materialized into a first temporary table during execution of the first database query, generating a first statistic for the first temporary table prior to creation of the first temporary table; and
(b) optimizing the first database query using the first statistic. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. An apparatus, comprising:
-
(a) at least one processor;
(b) a memory; and
(c) program code resident in the memory and configured to be executed by the at least one processor to optimize a first database query where at least one field is materialized into a first temporary table during execution of the first database query by generating a first statistic for the first temporary table prior to creation of the first temporary table and optimizing the first database query using the first statistic. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
-
23. A program product, comprising:
-
(a) program code configured to optimize a database query, where at least one field is materialized into a temporary table during execution of the database query, by generating a statistic for the temporary table prior to creation of the temporary table, and optimizing the database query using the statistic; and
(b) a computer readable signal bearing medium bearing the program code. - View Dependent Claims (24)
-
Specification