CKQuery from private zone returns only first 100 CKRecords from in CloudKit

100 is the default limit for standard queries. That amount is not fixed. It can vary depending on the total iCloud load. If you want to influence that amount, then you need to use CKQueryOperation and set the resultsLimit like this:
operation.resultsLimit = CKQueryOperationMaximumResults;
That CKQueryOperationMaximumResults is the default and will limit it to 100 (most of the time). Don’t set that value too high. If you want more records, then use the cursor of the queryCompletionBlock to continue reading more records.

Leave a Comment