0

Does it hurt to execute an NSFetchRequest that retrieves a lot of objects, maybe around 3 ~ 5K? I understand Core Data uses something called 'faulting' that ensures objects are not in memory until they are actually needed. So if I fetch 5K objects in an NSArray, that means the objects are really just placeholders until I actually access their properties? Is this a bad practice?

4

1 に答える 1

1

Core Data is highly optimized and should be able to handle 3-5k objects. You'll need to determine empirically how this affects the run-time memory consumption of your app.

于 2011-05-04T17:02:36.533 に答える