iPhone – IOS filter NSFETCHEDRESULTSCONTROLLER is valid

I’m trying to add search support to UITableView that supports Core Data, and I’m starting to experience some performance issues. I’m currently associated with two NSFetchedResultsControllers (one for general and one for search ). In my UISearchDisplayDelegate method, I release and recreate my NSFetchedResultsController after each call. However, this will cause a lag when typing! Is there a more effective way to filter NSFetchedResultsController? I have set my batch size to about 50 items, if it is different, my database has thousands of records. Thank you!
NSFetchedResultsController The documentation is very clear:

>If There is a cache, please delete it.>Update the fetchRequest attribute. Please note that you cannot simply modify an existing fetch request; you must create a new one.>Call -executeFetch: .

I’m trying to add search support to UITableView that supports Core Data, and I’m starting to experience some performance issues. I’m currently associated with two NSFetchedResultsController (one for general and one for search). In my UISearchDisplayDelegate In the method, I release and recreate my NSFetchedResultsController after each call. However, this will cause lag when typing! Is there a more effective way to filter NSFetchedResultsController? I have set my batch size to about 50 items, if it is different, my database has thousands of records. Thank you!

NSFetchedResultsController The documentation is very clear:

>If there is a cache, please delete it.>Update the fetchRequest attribute Please note that you cannot simply modify an existing fetch request; you must create a new one.>Call -executeFetch:.

Leave a Comment

Your email address will not be published.