1
同步(同步增量)雖然從Azure中做同步,我做這樣的什麼抽獎背上如果我將增加頁面大小,同時從蔚藍的服務
MSPullSettings *pullSettings = [[MSPullSettings alloc] initWithPageSize:500];
[self.table pullWithQuery:query queryId:[super getQueryIdForQuery:@"allCustomers"] settings:pullSettings
completion:^(NSError * _Nullable error) {
//Let the caller know that we have finished
if (completion != nil) {
dispatch_async(dispatch_get_main_queue(), ^{
completion(error);
});
}
}];
參考this。
我知道Azure的默認頁面大小爲50。 我觀察到,如果我爲1000條記錄提供更多的頁面大小(1000),那麼對於1000條記錄,它所花費的時間比頁面大小(50)要少。
想我不知道有多少記錄我的服務器上,所以我給的最大頁面大小,以獲得更好的性能。
但在這裏我的問題是, 是否有增加的頁面大小的任何缺點? (即50條記錄頁大小爲1000)
或者
有沒有什麼辦法讓頁面大小之前知道有多少條記錄在服務器?