cloudkit“您的请求包含多于单个请求(400)中的最大项数” [英] cloudkit "Your request contains more than the maximum number of items in a single request (400)"
问题描述
当用
[publicDatabase performQuery:query
inZoneWithID:nil
completionHandler: ^(NSArray * results,NSError * error){...
我得到以下错误,if返回的结果计数为100或更高
70]错误:< CKError 0x170641a70:Invalid Arguments(12/1020) ; 您的请求中包含的项目数量超过单个请求中的最大数量(400)>
我在开发人员模式下使用后端。这是否意味着,我不能做超过100-200返回的对象的查询?这不是很多...是否是任何其他ClouKits部署模式?
在API中查找CKQueryOperation。它会给你一个游标,你可以迭代所有的结果,一定要将你的operaation.resultsLimit设置为可管理的,否则你会得到相同的错误。
When doing a query with
[publicDatabase performQuery:query
inZoneWithID:nil
completionHandler:^(NSArray *results, NSError *error) {...
I get the following error, if the returned results count is 100 or higher
70] Error: <CKError 0x170641a70: "Invalid Arguments" (12/1020); "Your request contains more than the maximum number of items in a single request (400)">
I am in developer mode with the backend. Does this mean, I can't do a query with more than 100-200 returned objects? That not much... Is it any other ClouKits deployment mode?
Look for CKQueryOperation in the API. it will give you a cursor that you can iterate through all the results, be sure to set your operaation.resultsLimit to something manageable or you will get the same error.
这篇关于cloudkit“您的请求包含多于单个请求(400)中的最大项数”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!