The getItem function executes the CloudKit function fetchRecordWithID. Now that I read the documentation, I think I should change that function. The documentation says:
Use this method to fetch records that are not urgent to your app’s execution. This method fetches the record with a low priority, which may cause the task to execute after higher-priority tasks. To fetch records more urgently, create a CKFetchRecordsOperation object with the desired priority. You can also use that operation object to fetch multiple records simultaneously.
Currently for queries I also set the priority higher than de default. I think I should do that for the getItem too.
The getItem function executes the CloudKit function fetchRecordWithID. Now that I read the documentation, I think I should change that function. The documentation says:
Use this method to fetch records that are not urgent to your app’s execution. This method fetches the record with a low priority, which may cause the task to execute after higher-priority tasks. To fetch records more urgently, create a CKFetchRecordsOperation object with the desired priority. You can also use that operation object to fetch multiple records simultaneously.
Currently for queries I also set the priority higher than de default. I think I should do that for the getItem too.