Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Cloudkit fetchUserRecordIDWithCompletionHandler very slow response time

clickbeastclickbeast BelgiumPosts: 7New Users Noob
Hello,

I am getting really really slow respons times with fetchUserRecordIDWithCompletionHandler
It takes 10 seconds+ to fetch the user record id sometimes even a full minute or longer.
A simple request like that can't take that long. And a few times it took only a few seconds...

I presume it has something todo with the priority of the operation since cloudkit works asynchronously. Maybe there's someway to change this like you can do with a CKOperation by changing queuePriority.

Right now I am testing with this simple code, to make sure it works still the slow respons times are there. Of course my xcode project is bigger but this code gets called directly in the view did load method as the first thing:

CKContainer.defaultContainer().fetchUserRecordIDWithCompletionHandler({ (userRecordId: CKRecordID!, error:NSError!) -> Void in
if(error == nil) {
println(userRecordId)
}
})


Thank in advance :smile:

(Sorry for any language mistakes, not native...)
Sign In or Register to comment.