Error: The number of regex find operations in progress has reached its limit. (Code: 154, Version: 1.2.21)
当我在并发线程上执行findObjectInBackgroundWithBlock太多次时会发生此错误。我想知道这个错误是否有任何解决方案,甚至是关于其官方原因的文档。我在Parse.com上看不到任何关于此错误的解释。
搜索栏中的请求来源。在搜索栏中键入每个字符后,我会根据结果进行这些查询并填充表格。
var queryOuter = PFQuery(className: "OuterList")
queryOuter.whereKey("name", containsString: searchTerm)
queryOuter.limit = 10
queryOuter.findObjectsInBackgroundWithBlock({(objects: [AnyObject]!, error: NSError!) -> Void in
if (error == nil){
var tempArr = [PFObject]()
var tempArrOuterListSearchResults = [PFObject]()
for object in objects {
tempArrOuterListSearchResults.append(object as PFObject)
}
self.searchResultsForOuterList.removeAll(keepCapacity: false)
self.searchResultsForOuterList = tempArrOuterListSearchResults
}
else {
println ("encountered error...probably regex")
}
self.searchDisplayController.searchResultsTableView.reloadData()
})
提前致谢!