US 12,235,844 B1
Anomalous query identification using query clustering
Anup Ghatage, Fremont, CA (US); and Colm McHugh, Dublin (IE)
Assigned to Salesforce, Inc., San Francisco, CA (US)
Filed by Salesforce, Inc., San Francisco, CA (US)
Filed on Jan. 22, 2024, as Appl. No. 18/418,991.
Int. Cl. G06F 16/00 (2019.01); G06F 16/2453 (2019.01); G06F 16/28 (2019.01)
CPC G06F 16/24545 (2019.01) [G06F 16/285 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method, comprising:
receiving, by a server system, a query from a computer system;
determining, by the server system, a set of aspects for the query, including at least a number of columns specified in the query and a computational cost of executing the query;
generating, by the server system based on the set of aspects for the query, a query vector;
comparing, by the server system, the query vector with a plurality of clusters, ones of the plurality of clusters comprising two or more previously generated query vectors generated based on aspects of queries previously received by the server system;
classifying, by the server system based on the comparing, the query, wherein the classifying is based on a distance between the query vector and the plurality of clusters of previously generated query vectors; and
managing, by the server system, the query based on a classification of the query determined during the classifying.