Core Data CloudKit App Concerns

Hi


hi I'm developing a patient management system using Code Data App that supports CloudKit, I feel it's the best scena to use, my concern is if a user a doctor for example is editing a record while another staff delete this record, what's the design pattern here ? Locking the record ? Can that be done in Core Data CloudKit ?


Another concern is, what if a record is deleted and because there's few seconds of delay in data sync another user might open that record or at least try to open it ? Or maybe he edited it when he was offline and then when going online that record was deleted ?


There might be many other such cases but what I understand that new systems solves this issues in a better why ?


--

Kindest Regards

Answered by Claude31 in 416169022

AFAIK, there is no built in support to manage these multiple access. But there may exist libraries to do so.


On way would be to lock the record on server (or the full table) and release once updated. Take care, in case of failure, not to leave it permanently locked.

Accepted Answer

AFAIK, there is no built in support to manage these multiple access. But there may exist libraries to do so.


On way would be to lock the record on server (or the full table) and release once updated. Take care, in case of failure, not to leave it permanently locked.

Core Data CloudKit App Concerns
 
 
Q