cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lon Varscsak <lon.varsc...@gmail.com>
Subject Re: Object relationship freshness
Date Tue, 19 Apr 2016 23:07:32 GMT
It looks like I had cayenne.DataDomain.sharedCache=true in my model.
Changing this to default solved my issue.  Seem reasonable?

On Tue, Apr 19, 2016 at 3:50 PM, Lon Varscsak <lon.varscsak@gmail.com>
wrote:

> Hey guys,
>
> I’m executing a query and then referencing the fetched object and some
> relationships on the fetched object.  Later, I create a new ObjectContext
> (old one is thrown away) and I issue the fetch again and I notice that the
> relationship objects are not refreshed (weirdly I see one of the
> relationship queries fire again, but not the other…either way both objects
> “snapshots” (EOF term) are as they were originally).
>
> I’m not caching any results, shouldn’t data go stale after it’s
> ObjectContext is gone?
>
> -Lon
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message