• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreData, reset a persistent store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CoreData, reset a persistent store
      • From: Pierre Chatelier <email@hidden>
References: 
 >CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>)
 >Re: CoreData, reset a persistent store (From: Elise van Looij <email@hidden>)
 >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>)
 >Re: CoreData, reset a persistent store (From: Elise van Looij <email@hidden>)
 >Re: CoreData, reset a persistent store (From: "I. Savant" <email@hidden>)
 >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>)

  • Prev by Date: Re: CFRunLookFindMode crash
  • Next by Date: Re: CoreData, reset a persistent store
  • Previous by thread: Re: CoreData, reset a persistent store
  • Next by thread: Re: CoreData, reset a persistent store
  • Index(es):
    • Date
    • Thread