| CPC G06F 16/24542 (2019.01) [G06F 16/215 (2019.01); G06F 16/2425 (2019.01); G06N 5/04 (2013.01); G06N 20/00 (2019.01)] | 26 Claims |

|
1. A controller device for query prediction, comprising:
a processor; and
a computer-readable medium storing instructions that when executed by the processor direct the processor to:
receive, from a user query device, a structured query language (SQL) statement for tuning;
automatically transform the SQL statement to generate a cleaned SQL statement, wherein the transforming comprises at least one of (i) identifying and converting any date within the SQL statement to a standardized format and (ii) identifying and removing at least one word from the SQL statement;
automatically generate at least one query feature string based on the cleaned SQL statement, each query feature string corresponding to a respective SQL feature of the cleaned SQL statement;
automatically generate, for each query feature string, a respective feature count vector comprising an indication of the corresponding SQL feature and an indication of a number of occurrences of the corresponding SQL feature in the cleaned SQL statement, thereby generating a dataset of feature count vectors;
automatically assemble, based on the dataset of feature count vectors, an aggregate feature vector;
access a dataset of historical aggregate feature vectors;
automatically generate an SQL statement performance prediction for the SQL statement by testing the aggregate feature vector against the dataset of historical aggregate feature vectors,
wherein generating the SQL statement performance prediction for the SQL statement does not comprise executing the SQL statement; and
output the SQL statement performance prediction.
|