我不明白 setFetchBatchSize 的含义。
在下面的代码中,我将获取批量大小设置为 20,但我的结果数组中仍然有 49 个对象(它们是查询中的所有对象)
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"company.id = %@", company.id];
NSFetchRequest *req = [CategoryEntity requestAllSortedBy:@"id" ascending:YES withPredicate:predicate];
[req setFetchBatchSize:20];
NSArray *results = [CategoryEntity executeFetchRequest:req];
那么setFetchBatchSize是什么意思,因为它似乎没有限制请求?