Background - Error Package:
NSFetchRequest allows batch unauthorized use, for example, using a query of 1000 results, it will lead to all errors, then it will distort X objects at the same time (i.e. Index 0-20, then 21-40, etc.)
This behavior is great for use in NSFetchResultsController for UITableViewDataSource and allows you to quickly scroll through the user interface because it does not protect objects one by one.
Now my problem is:
I use ordered relationships for lists of objects, for example, messages.
Since Post can appear in many lists of my model, I cannot save its index in each list on the Post object and use it as a parameter to organize the results.
So far, I have not found a way for NSFetchRequest to get the selection in that order, so I cannot use its batch reject. Therefore, I turn to relations with the index, and in the end I find myself unable one after another, which leads to uneven scrolling.
Is there any way that NSFetchResultsController retrieves according to order relationships? Or is there a batch immune API that is not private?
avishic
source share