CPC G06F 16/2458 (2019.01) [G06F 16/24561 (2019.01); G06F 16/285 (2019.01); G06F 9/3877 (2013.01)] | 20 Claims |
1. A system, comprising:
at least one processor; and
a memory, storing program instructions that when executed by the at least one processor, cause the at least one processor to implement a primary query engine for a database;
wherein the primary query engine is configured to:
receive a query to the database;
determine whether the query is eligible to be performed by at least the primary query engine and a secondary query engine, wherein the primary query engine and the secondary query engine are provisioned to perform queries to the database in response to the query or a prior query to the database; and
responsive to a determination that the query is eligible to be performed by the primary query engine and the secondary query engine:
predict a first execution time for the primary query engine to perform the query and a second execution time for the secondary query engine to perform the query,
assign one of the primary query engine or the secondary query engine to begin performing the query based on a comparison between the first execution time and the second execution time, and
responsive to an assignment of the query to the secondary query engine, send a request to the secondary query engine to begin performing the query to the database.
|