Re: CoreData, reset a persistent store
Re: CoreData, reset a persistent store
- Subject: Re: CoreData, reset a persistent store
- From: "I. Savant" <email@hidden>
- Date: Tue, 14 Nov 2006 13:34:30 -0500
I am not worrying about performance, I just want to reset my cache
from time to time, because it has no reason to spoil too much space.
Fair enough, but I consider memory consumption / paging a pretty
significant part of 'performance'.
This consumes too much memory. I do not have any figures but this
is not logical to load data before getting rid of it !
I have no idea just how much data you're talking about, but in
most cases once you delete the objects you've fetched, then save the
store, the data's no longer your problem (assuming proper memory
management). You haven't provided any information that indicates a
problem with memory consumption actually exists in your case. Try it,
measure it with Shark, and you'll know.
Core Data with a SQL store and a well-designed model performs
amazingly well. Then again, the documentation does say, "... although
of course reading 1GB of data into memory is an expensive operation
no matter how efficient the repository ..."
If you *do* find a problem (and you're not loading 1 GB of data
into memory), it can likely be solved by adjusting your data model.
Test your assumptions, you may be surprised. In any case, more
specific information is needed to give you more specific answers. :-)
You haven't specified the store type you're using, whether your
app is document-based, or the amount of data you're working with and
how it's structured. If you post this information, you might get a
clearer answer or a better suggestion.
I hope this is at least somewhat helpful.
--
I.S.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden