Generating database query plans
First Claim
Patent Images
1. A computer-implemented method, comprising:
- receiving a database query;
estimating an energy consumption requirement for generating a new query plan adapted for executing the database query;
estimating an energy consumption saving resulting from executing the new query plan against a database instead of executing an existing query plan against the database, wherein the energy consumption saving comprises the difference between an amount of electrical energy required to execute the existing query plan and an amount of electrical energy required to execute the new query plan; and
upon determining that the energy consumption saving exceeds the energy consumption requirement, generating the new query plan.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the invention provide techniques for optimizing database queries for energy efficiency. In general, a query optimizer is configured to compare energy requirements of query plans, and to select a query plan requiring minimal energy to execute. In one embodiment, the query optimizer may also compare time performance of the query plans, and may select a query plan by matching to a user preference for a relative priority between energy requirements and time performance.
-
Citations
18 Claims
-
1. A computer-implemented method, comprising:
-
receiving a database query; estimating an energy consumption requirement for generating a new query plan adapted for executing the database query; estimating an energy consumption saving resulting from executing the new query plan against a database instead of executing an existing query plan against the database, wherein the energy consumption saving comprises the difference between an amount of electrical energy required to execute the existing query plan and an amount of electrical energy required to execute the new query plan; and upon determining that the energy consumption saving exceeds the energy consumption requirement, generating the new query plan. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer readable storage medium containing a program which, when executed, performs an operation, comprising:
-
receiving a database query; estimating an energy consumption requirement for generating a new query plan adapted for executing the database query; estimating an energy consumption saving resulting from executing the new query plan against a database instead of executing an existing query plan against the database, wherein the energy consumption saving comprises the difference between an amount of electrical energy required to execute the existing query plan and an amount of electrical energy required to execute the new query plan; and upon determining that the energy consumption saving exceeds the energy consumption requirement, generating the new query plan. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A system, comprising:
-
a database; a processor; and a memory containing a program, which when executed by the processor is configured to perform an operation, comprising; receiving a database query; estimating an energy consumption requirement for generating a new query plan adapted for executing the database query; estimating an energy consumption saving resulting from executing the new query plan against the database instead of executing an existing query plan against the database, wherein the energy consumption saving comprises the difference between an amount of electrical energy required to execute the existing query plan and an amount of electrical energy required to execute the new query plan; and upon determining that the energy consumption saving exceeds the energy consumption requirement, generating the new query plan. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification