---
title: resultsLimit
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckqueryoperation/resultslimit
---

# resultsLimit

The maximum number of records to return at one time.

## Declaration

```swift
var resultsLimit: Int { get set }
```

## Discussion

Discussion For most queries, leave the value of this property as the default value, which is the maximumResults constant. When using that value, CloudKit returns as many records as possible while minimizing delays in receiving those records. If you want to process a fixed number of results, change the value of this property accordingly.

## See Also

### Configuring the Query Operation

- [query](cloudkit/ckqueryoperation/query.md)
- [cursor](cloudkit/ckqueryoperation/cursor-swift.property.md)
- [CKQueryOperation.Cursor](cloudkit/ckqueryoperation/cursor-swift.class.md)
- [zoneID](cloudkit/ckqueryoperation/zoneid.md)
- [maximumResults](cloudkit/ckqueryoperation/maximumresults.md)
- [desiredKeys](cloudkit/ckqueryoperation/desiredkeys-7qrse.md)
