主权项 |
1. One or more computer-readable storage media storing instructions that, when executed by a computing device, perform a method of improving efficiency of a database query, the method comprising:
receiving a database query; identifying one or more query portions of the database query as candidates for replacement; determining a plurality of alternative queries, the respective alternative queries including at least one substitute query portion in place of at least one of the candidates for replacement; determining an expected performance of at least some of the plurality of alternative queries; and based at least in part on the expected performance of the at least some of the plurality of alternative queries, selecting one or more alternative queries of the plurality of alternative queries as replacement database queries for the received database query. |