Patent ID: 11934397
Assignee: SALESFORCE, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. A computer system, comprising:
one or more processors;
memory having program instructions stored therein that are executable by the one or more processors to implement a database system performing operations including:
receiving, at a query parser of the database system from an application, a first instance of a query requesting data from a multi-tenant database for a first entity, wherein the query includes a constraint that restricts how a query optimizer implements a clause within the query;
in response to determining that a query override has been specified for the first entity, providing a modified version of the query that a modified version of the constraint to the query optimizer for selection of a first execution plan;
receiving, at the query parser from the application, a second instance of the query requesting data from the multi-tenant database for a second entity; and
in response to determining that no query override has been specified for the second entity, providing the query, without modification, to the query optimizer for selection of a second, different execution plan.