Open sskjames opened 2 months ago
The problem could be here in the recordToUpload
method in RealmSwiftAdapter
.
// if we set the parent we must make the action .deleteSelf, otherwise we get errors if we ever try to delete the parent record
let action: CKRecord.ReferenceAction = parentKey == property.name ? .deleteSelf : .none
let recordReference = CKRecord.Reference(recordID: recordID, action: action)
record[property.name] = recordReference;
If I set the action as .none
, then the problem is not happening, but then we will lose cascade delete.
When a record is referred by more than 750 other records, I get this error:
I could consistently recreate this problem.
Is this because of cascade delete?
Ref: CKReference
Is there a way to resolve this?