13. 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: determining a plurality of execution plans for executing a query, wherein each of the plurality of execution plans represents an alternative way of executing the query relative to the other execution plans in the plurality of execution plans, and wherein each of the plurality of execution plans includes a plurality of operations to be performed in executing the query and a schedule in which to perform operations in the plurality of operations; for each of the plurality of execution plans: determining a power consumption value for the execution plan, wherein the power consumption value approximates an amount of power that would be consumed by executing the query using the respective 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; 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; and executing the query according to the first execution plan, wherein an entirety of the query is executed once the first execution plan is completed.
16. The system of claim 13 , wherein the first execution plan includes using additional processing resources in order to expedite execution of the query.