[ http://www.datanucleus.org/servlet/jira/browse/NUCCORE-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18255#action_18255 ]
Andy Jefferson edited comment on NUCCORE-588 at 11/8/10 10:02 PM:
------------------------------------------------------------------
Tom, not had much time recently. You don't say which test scenario you took that test from. test.jdo.datastore ? i.e does the sample have to use datastore id for it to work ? It doesn't persist any objects either so don't see how anything can work without knowing where it comes from
was (Author: andy):
Tom, not had much time recently. You don't say which test scenario you took that test from. test.jdo.datastore ? i.e does the sample have to use datastore id for it to work ?
> Be able to cache relationships.
> -------------------------------
>
> Key: NUCCORE-588
> URL: http://www.datanucleus.org/servlet/jira/browse/NUCCORE-588
> Project: DataNucleus Core
> Issue Type: Improvement
> Reporter: Tom Zurkan
> Attachments: jdostatemanager.diff, JDOStateManager2.java, RelationshipTest.java
>
>
> What we would like to do is be able to cache relationship fields so that the first time the relationship is accessed, there will be a join against the owner id. On subsequent calls, the relationship would be cached with the id. The id would be used to look up in the cache and either pass back the object, load it by id, and cache it. The relationship is removed when a field is made dirty.
> I have augmented the StateManager to accomplish this but I am not sure I have gone down the best path. I am submitting the enclosed augmented JDOStatemanager to show where I trying to go with this. One thing to look at it that I have to use the OID to get the class of the object id i have so that i can create hallow pms with statemanagers.
> it is configurable via the cacheRelationships variable. <persistence-property name="datanucleus.CacheRelationships" value="false"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.datanucleus.org/servlet/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira