• 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
Clearing the application's object cache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clearing the application's object cache


  • Subject: Clearing the application's object cache
  • From: Ricardo Parada <email@hidden>
  • Date: Thu, 3 Aug 2006 11:21:54 -0500


If I create an editing context, then read some EOs into memory.  Then I throw away the editing context by assigning null to the variable referencing the editing context.

Then I create a new editing context and read the same EOs into memory.  Will the EOs have the same data as the ones read into memory when I created the first editing context?

Anyways, I guess what I'm looking for is an effective way to read in some EOs into memory, perform some work, save the changes and then clear the application's object cache and start over.  This is not a web app.  It is a background process that does some analysis.   So every time I read my EOs the entire object graph has to have fresh data from the database.

Is this the right way to do this:

EOEditingContext.rootObjectStore().invalidateAllObjects();

Thanks
Ricardo Parada

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Clearing the application's object cache
      • From: Paul Lynch <email@hidden>
    • Re: Clearing the application's object cache
      • From: Ken Anderson <email@hidden>
  • Prev by Date: Re: Event update ; notice
  • Next by Date: Re: WOB 5.3.1 deleting components WTF?
  • Previous by thread: Re: WOB 5.3.1 deleting components WTF?
  • Next by thread: Re: Clearing the application's object cache
  • Index(es):
    • Date
    • Thread