ioscloudkitckrecordzone

CloudKit CKRecordZone


I have been fiddling with CloudKit for some time now, but I can't find a real-life example for how to use CKRecordZone. I understand their capabilities (namely, grouping records, especially for subscriptions), but does someone have a real experience of having used them, and to map which concept ?

Thanks


Solution

  • CloudKit record zones give you three main benefits:

    1. It allows you to do atomic operations (either all or none of the changes will get applied)
    2. It gives you sync capabilities, so you can fetch record changes from a previous point in time (with a change token) as opposed to having to download the full list of records every time you talk with the server.
    3. It's useful for logically grouping records that belong together.