cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Relationships refresh possible BUG
Date Wed, 17 Jun 2009 14:38:38 GMT

On Jun 17, 2009, at 5:31 PM, wrote:

> Thanks for the clarification, I (mis)understood what was  
> RefreshQuery().
> If I understand well "invalidating" means that it will not refresh  
> the cached relationships but will only detect the added/removed  
> relationships ?

yes. we are invalidating a single object, not the entire object graph.

> So the only way (without prefetching) to _fully_ update the  
> relationships of an object is to :
> 1) RefreshQuery() -> update the root object and invalidate it's  
> relationships so it will detect the relationship adding/removal the  
> on next access. (but will not refresh the relationships values)
> 2) Use RelationshipQuery() to refresh the values of the already  
> cached relationships.
> Is my understanding OK ?

I never thought of it, but I guess that should work. I suggest to use  
prefetching though.


View raw message