ENERGY MONETARY COST AWARE QUERY OPTIMIZATION
First Claim
Patent Images
1. A method of optimizing a query, comprising:
- receiving a query submitted for execution;
determining a plurality of execution plans for the query;
for each execution plan in the plurality of execution plans;
determining a power consumption value for the execution plan; and
determining a monetary cost for executing the query according to the execution plan, based on one or more pricing values and the determined power consumption value for the execution plan; and
selecting a first execution plan from the plurality of execution plans to use in executing the query, wherein the first execution plan is selected based on the determined monetary cost for the first execution plan.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the invention provide a method of optimizing a query, including determining an execution plan for use in executing the query, based on a monetary cost of the energy needed to execute the query. A query optimization component may determine a plurality of execution plans for the query. The query optimization component may then select one of the plans to use in executing the query based on the monetary cost calculated for the plan.
26 Citations
21 Claims
-
1. A method of optimizing a query, comprising:
-
receiving a query submitted for execution; determining a plurality of execution plans for the query; for each execution plan in the plurality of execution plans; determining a power consumption value for the execution plan; and determining a monetary cost for executing the query according to the execution plan, based on one or more pricing values and the determined power consumption value for the execution plan; and selecting a first execution plan from the plurality of execution plans to use in executing the query, wherein the first execution plan is selected based on the determined monetary cost for the first execution plan. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer-readable storage medium containing a program which, when executed, performs an operation, comprising:
-
receiving a query submitted for execution; determining a plurality of execution plans for the query; for each execution plan in the plurality of execution plans; determining a power consumption value for the execution plan; and determining a monetary cost for executing the query according to the execution plan, based on one or more pricing values and the determined power consumption value for the execution plan; and selecting a first execution plan from the plurality of execution plans to use in executing the query, wherein the first execution plan is selected based on the determined monetary cost for the first execution plan. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A system, comprising:
-
a computer processor; and a memory containing a program that, when executed on the computer processor, performs an operation for optimizing a query, comprising; receiving a query submitted for execution; determining a plurality of execution plans for the query; for each execution plan in the plurality of execution plans; determining a power consumption value for the execution plan; and determining a monetary cost for executing the query according to the execution plan, based on one or more pricing values and the determined power consumption value for the execution plan; and selecting a first execution plan from the plurality of execution plans to use in executing the query, wherein the first execution plan is selected based on the determined monetary cost for the first execution plan. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
Specification