NSFetchedResultsController ignores fetchLimit?

后端 未结 7 1994
春和景丽
春和景丽 2020-12-25 13:58

I have a NSFetchedResultsController to update a UITableView with content from Core Data. It\'s pretty standard stuff I\'m sure you\'ve all seen many times however I am runn

7条回答
  •  一生所求
    2020-12-25 14:40

    From apple doc: https://developer.apple.com/reference/coredata/nsfetchrequest/1506622-fetchlimit

    If you set a fetch limit, the framework makes a best effort, but does not guarantee, to improve efficiency. For every object store except the SQL store, a fetch request executed with a fetch limit in effect simply performs an unlimited fetch and throws away the unasked for rows.

提交回复
热议问题