15. A system, comprising: at least one hardware device including a processor; and the system configured to perform operations comprising: receiving a database query for execution on a database; identifying a source corresponding to the database query; selecting a modification of the database query based on the source; applying the modification to the database query to obtain a modified database query; selecting one or more partitions, from a plurality of partitions of the database, that are relevant to the modified database query based on a partitioning key associated with the database; and executing the modified database query on the selected partitions, without executing the modified database query on the non-selected partitions, to obtain a first set of results.
15. A system, comprising: at least one hardware device including a processor; and the system configured to perform operations comprising: receiving a database query for execution on a database; identifying a source corresponding to the database query; selecting a modification of the database query based on the source; applying the modification to the database query to obtain a modified database query; selecting one or more partitions, from a plurality of partitions of the database, that are relevant to the modified database query based on a partitioning key associated with the database; and executing the modified database query on the selected partitions, without executing the modified database query on the non-selected partitions, to obtain a first set of results. 17. The system of claim 15 , wherein identifying the source corresponding to the database query comprises: identifying a user or an application that generated the database query.