Advanced Customization > Services and Infrastructure Customization > Advanced Query Capabilities > QuerySpec > Query Limit
  
Query Limit
A QuerySpec attribute, "queryLimit", can be used to limit the results returned from a query. As the database results are processed, a count is kept for each item in the result set. This count includes items filtered out due to Access Control. If the limit is reached, then a PartialResultException will be thrown. This exception will contain a QueryResult with the items that have been processed. This could be used in a situation where a client may choose to display these results after issuing a message that a query limit was reached.