Learning Energy-Aware Transaction Scheduling in Database Systems