Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a limit to the number of CKReferenced records in CloudKit?

I am trying to store groups of contacts in CloudKit, and I am getting an error back if I try to create a large group of records, CKReferenced to a single group record.

The limit appears to be around 700 or so records.

Has anyone else seen a similar result, or can confirm the existence (or non-existence) of a limit? I can't find anything in the docs, or through Google.

NOTE: I am already splitting the records I submit into batches of 400 or less, as that seems to be a hard limit.

like image 987
Peter Johnson Avatar asked Jan 13 '16 16:01

Peter Johnson


1 Answers

Yes & no - it depends on whether the CKReferences have a CKReferenceAction of deleteSelf.

In the CloudKit Web Services Reference*, Apple lists the following limit:

Maximum number of source references to a single target where the action is delete self = 750

This may explain why EVCloudKitDao was able to exceed this limit (in the comments above) - its CKReferences were previously created with a CKReferenceAction of None.

Despite the only mention of this limit being in the CloudKit Web Services documentation, the Designing for CloudKit reference links to it, and it seems to be a server-side limit that applies regardless of which CloudKit API you are using.

like image 66
breakingobstacles Avatar answered Nov 18 '22 18:11

breakingobstacles