You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2014/08/29 16:54:52 UTC
[jira] [Commented] (CAY-1947) Extraneous UPDATE on phantom toOne
[ https://issues.apache.org/jira/browse/CAY-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14115303#comment-14115303 ]
Andrus Adamchik commented on CAY-1947:
--------------------------------------
additionally noticed :
ObjectDiff.currentArcSnapshot is unused in 3.2. Need to kill it, it just takes memory and time to maintain.
> Extraneous UPDATE on phantom toOne
> ----------------------------------
>
> Key: CAY-1947
> URL: https://issues.apache.org/jira/browse/CAY-1947
> Project: Cayenne
> Issue Type: Bug
> Affects Versions: 3.2M1
> Reporter: Andrus Adamchik
> Assignee: Andrus Adamchik
> Priority: Minor
>
> in a 1..N relationship, where there's no corresponding N..1 on the object side, a phantom update (same to-one set twice) causes an UPDATE query that is essentially a noop. See https://github.com/nhl/link-rest/issues/28. This comes down to the fact that we do not analyze "phantomFks" inside ObjectDiff.isNoop(..). (Or maybe when we resolve to-many and find phantom objects are already in it, we should unregister a change from ObjectStore?)
--
This message was sent by Atlassian JIRA
(v6.2#6252)