• 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: Pierre Chatelier <email@hidden>
  • Date: Thu, 16 Nov 2006 01:44:43 +0100

This implies that you are fully loading all objects of entity kind "CachedFeatures" from the persistent store (loading from disk) to just go an delete them since you are using executeFetchRequest:error:. You are not utilizing any cache for this fetch (but you are getting the cache populated). This is likely unneeded overhead.
Exactly ! And I want to avoid this overhead. I began this thread of discussion to know if there was a way to tell a persistent store (or a managed object context) to remove objects without fetching them.

Stepping back ... what are "CachedFeatures" objects ?
It's some data related to my application

Do you even want the data those objects contain in the persistent store?
Absolutely ! But sometimes I want to reset the persistent store.

Regards,

Pierre Chatelier


_______________________________________________ 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: mmalc crawford <email@hidden>
    • Re: CoreData, reset a persistent store
      • From: Shawn Erickson <email@hidden>
References: 
 >CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>)
 >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>)
 >Re: CoreData, reset a persistent store (From: "Marcus S. Zarra" <email@hidden>)
 >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>)
 >Re: CoreData, reset a persistent store (From: "I. Savant" <email@hidden>)
 >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>)
 >Re: CoreData, reset a persistent store (From: Pierre Chatelier <email@hidden>)
 >Re: Re: CoreData, reset a persistent store (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: Cocoa Bindings - removeObserver if I know the observed instance
  • Next by Date: Reusing HTTP connections
  • Previous by thread: Re: Re: CoreData, reset a persistent store
  • Next by thread: Re: CoreData, reset a persistent store
  • Index(es):
    • Date
    • Thread