CKSyncEngine for records with references

Is there any guidance for syncing records that have references to others regarding batching with the sync engine?

For example, if I have hundreds of records to sync with many different types and references, do I need to keep track of how many records would be added because of reference properties?

The sample and video doesn’t go into details about syncing records that have references to others so looking for lesser known rough edges.

Answered by Engineer in 890743022

Hi @edorphy,

Great question!

You don't need to perform any bookkeeping around references when syncing CKRecords via CKSyncEngine.

A CKReference is just a pointer to another record. If a CKRecord has a CKReference on it, it won't pull additional CKRecords into the CKSyncEngine batch.

Hi @edorphy,

Great question!

You don't need to perform any bookkeeping around references when syncing CKRecords via CKSyncEngine.

A CKReference is just a pointer to another record. If a CKRecord has a CKReference on it, it won't pull additional CKRecords into the CKSyncEngine batch.

CKSyncEngine for records with references
 
 
Q