使用Azure移动服务在iOS中并行呼叫sdk
问题描述:
如何对Azure服务器进行并行呼叫,在客户端,我正在使用Azure移动服务SDK。使用Azure移动服务在iOS中并行呼叫sdk
我做的到服务器的调用像下面
[self.table pullWithQuery:query queryId:@"somename"] settings:pullsetting completion:^(NSError *error) {
// Let the caller know that we finished
dispatch_async(dispatch_get_main_queue(), ^{
completion(error);
});
}]
对于每个表/实体,我正在像上面的电话。 但所有调用都由Azure串行执行。
有什么办法让它平行吗?
答
不,我们不能使用azure SDK进行并行请求。当您调用pullWithQuery
方法时,该操作将通过天蓝色框架内部添加到串行队列中。这里是验证azure框架实现文件的链接: https://github.com/Azure/azure-mobile-services