IIRC, they create a new EC per request so when the request ends there are no 
references to the EOs so they get garbage collected.  I am surprised using the 
session's default changes this as it should not be retaining references to its 
objects (unless you have enabled that).

You can also look at the ERXEnterpriseObject cache if you only want to prevent 
some of the objects from being refetched.

Chuck



--
Chuck Hill
Executive Managing Partner, VP Development and Technical Services

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
Companies in B.C!

Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of 
Canada’s Fastest-Growing Companies by PROFIT Magazine!

On 2013-12-10 6:20 AM, "Michael Kondratov" wrote:

Time lag is 15 minutes. Rest routes seem to always fetch data from the database 
unless I manually fault objects into session's editing context. It's a huge 
performance hit.

Sent from my iPad

On Dec 10, 2013, at 8:34, Samuel Pelletier 
<[email protected]<mailto:[email protected]>> wrote:
Hi,
The snapshot cache is under EOEditingContext. Check your 
EOEditingContext.defaultFetchTimestampLag(), if is it very low, you are asking 
for refreshed objects when you fetch.
Samuel
Le 2013-12-09 à 13:09, Michael Kondratov 
<[email protected]<mailto:[email protected]>> a écrit :
Is there an easy way to get ERRest to use session’s default editing context if 
session is available? It seems I am missing out on WebObject’s snapshot caching 
when not using long lived editing contexts.
Michael Kondratov
Aspire Auctions _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
This email sent to [email protected]<mailto:[email protected]>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [email protected]<mailto:[email protected]>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to