What is the impact of IOS – cache for NSFETCHEDRESULTSCONTROLLER?

Of course I did a PhD, but I don’t quite understand the meaning of “set any part and order content”.

>Doesn’t this information come from the database? ?
>Does this mean that NSFetchedResultsController itself needs other types of indexes besides database indexes?
>What really happened when NSFetchedResultsController set the cache?
>Is caching only useful for static data? If my data is updated frequently, should I use the cache?
>How do I analyze the performance of the cache? I tried caching, but I didn’t see any performance improvement. I timed-performFetch: but saw the time increase from 0.018 seconds (without caching) to 0.023 seconds (with caching). I also timed-objectAtIndexPath: and only time from 0.000030( Without caching) is reduced to 0.000029 (with catch).

In other words, I want to know when (or not) caching improves performance and why.

As @Marcus below As pointed out, “500 entries are small. Core data can process it without human noticeable lag. Use caching when you have thousands of records.” So I think there are very few applications that can use caching from

NSFetchedResultsController’s cache is a shortcut. It is the cache of the final result of NSFetchRequest. It is not the entire data, but enough data of the NSFetchedResultsController to quickly display its results; soon.

It is a “copy” of the data in the database, and it is very useful when the next instantiation of the NSFetchedResultsController The easy-to-use format is serialized to disk.

In other words, it is the final result of flash freezing to disk.

Of course I read a PhD , But I don’t quite understand the meaning of “set any part and order content”.

>Doesn’t this information come from the database?
>Does this mean that NSFetchedResultsController itself needs other types of indexes besides database indexes?
>What really happened when NSFetchedResultsController set the cache?
>Is caching only useful for static data? If my data is updated frequently, should I use the cache?
>How do I analyze the performance of the cache? I tried caching, but I didn’t see any performance improvement. I timed-performFetch: but saw the time increase from 0.018 seconds (without caching) to 0.023 seconds (with caching). I also timed-objectAtIndexPath: and only time from 0.000030( Without caching) is reduced to 0.000029 (with catch).

In other words, I want to know when (or not) caching improves performance and why.

As @Marcus below As pointed out, “500 entries are small. Core data can process it without human noticeable lag. Use caching when you have thousands of records.” So I think there are very few applications that can use caching from

The cache of NSFetchedResultsController is a shortcut. It is the cache of the final result of NSFetchRequest. It is not the whole data, but enough data of NSFetchedResultsController, The results can be displayed quickly; very quickly.

It is a “copy” of the data in the database, and it is serialized to disk in a format that is easy to use when NSFetchedResultsController is next instantiated.

In other words, it is the final result of flash freezing to disk.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3910 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.