Clearing the application's object cache
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