1. A computer-implemented method of managing execution of a query against a partitioned database having a plurality of data partitions, comprising: receiving a query having conditional filtering logic to restrict the data records in the partitioned database to a result set satisfying the conditional filtering logic; on the basis of an indication that only a subset of the result set is to be returned, determining a subset of data partitions from the plurality of data partitions from which the subset of the result set can be retrieved; and executing the query only against the subset of data partitions.