evermeer / EVCloudKitDao

Simplified access to Apple's CloudKit
Other
645 stars 65 forks source link

change getItem to use a CKFetchRecordsOperation #60

Closed evermeer closed 8 years ago

evermeer commented 8 years ago

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.

evermeer commented 8 years ago

I just released this update as version 2.18.0