On 2013-05-02, at 4:11 PM, Joseph Pachod wrote:

> Chuck Hill said:
> > The snapshots are referenced counted.  When the last EO using the snapshot 
> > is refaulted or garbage collected, the snapshot is discarded.
> 
> Just to make sure:
> - let say the editing context someEditingContext is asked to fetch some 
> entity and the result is assigned to foo, some variable. The corresponding 
> snapshot is stored on the way.
> - now, the foo variable is no more used and ends up being garbage collected.
> - What happens now to the corresponding snapshot ? If I get you right, this 
> snapshot will be garbage collected once the editingContext someEditingContext 
> is itself garbage collected, it this right ?

It should be collected shortly after foo is set to null or goes out of scope.  
Keep in mind that relationships between EOs are also references.


> 
> @Ramsey
> 
> Thanks for the reply. 
> 
> What haven't use it yet in production BTW ?

Because he is Gurley!  <rimshot />

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 76th in 24th annual PROFIT 200 ranking of 
Canada’s Fastest-Growing Companies by PROFIT Magazine!












 _______________________________________________
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