You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2012/08/08 16:45:20 UTC

[jira] [Created] (OPENJPA-2249) Minor performance improvement when using LiteAutoDetach

Rick Curtis created OPENJPA-2249:
------------------------------------

             Summary: Minor performance improvement when using LiteAutoDetach
                 Key: OPENJPA-2249
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2249
             Project: OpenJPA
          Issue Type: Improvement
          Components: kernel, performance
    Affects Versions: 2.2.0, 2.3.0
            Reporter: Rick Curtis
            Priority: Minor
             Fix For: 2.3.0


I have found that when detaching the entire persistence context we create a new collection of all items that need to be detached but we could be smarter and just create an intelligent iterator. This new iterator will iterate over each collection/map that needs to be detached.

In local perf testing this showed a marginal improvement.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (OPENJPA-2249) Minor performance improvement when using LiteAutoDetach

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis closed OPENJPA-2249.
--------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: 2.3.0)
         Assignee: Rick Curtis

After further research, my solution proved to shift the costs rather than remove them. Closing this issue as invalid.
                
> Minor performance improvement when using LiteAutoDetach
> -------------------------------------------------------
>
>                 Key: OPENJPA-2249
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2249
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel, performance
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>            Priority: Minor
>
> I have found that when detaching the entire persistence context we create a new collection of all items that need to be detached but we could be smarter and just create an intelligent iterator. This new iterator will iterate over each collection/map that needs to be detached.
> In local perf testing this showed a marginal improvement.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira