How does .DeleteSelf really work? The docs say:
When the action of the reference objects is set to CKReferenceActionDeleteSelf, the target of the link, that is, the record stored in the recordID file of the record, becomes the owner of the source record. Deleting the record of the target (owner) deletes all of its original records.
but my impression is that deleting the target will not always result in deleting the source. And this is pretty annoying when it stays in the container, the client loads it and expects the checkpoint to be somewhere, but the goal does not exist when creating a slice of the server data store on the client?
How do you feel about this business? Do you ignore such entries? Or do you periodically browse CloudKit storage looking for corrupted entries to delete them?
Or, instead of deleting a record, is it better to set an attribute that is in a remote state, but save it in the database?
ios cloudkit
Jรกnos
source share