You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Helen Xu (JIRA)" <ji...@apache.org> on 2012/06/26 16:53:44 UTC

[jira] [Created] (OPENJPA-2220) Persistent field fetching statistic tool

Helen Xu created OPENJPA-2220:
---------------------------------

             Summary: Persistent field fetching statistic tool
                 Key: OPENJPA-2220
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
             Project: OpenJPA
          Issue Type: Task
          Components: performance
    Affects Versions: 2.3.0
            Reporter: Helen Xu
            Assignee: Helen Xu


This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.



--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

Posted by "Helen Xu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410713#comment-13410713 ] 

Helen Xu commented on OPENJPA-2220:
-----------------------------------

if user has a lot of entities, the following message could be very long. 

4226 fetchStatisticPU INFO [Thread-5] openjpa.Runtime - Successfully collected fetch statistics from Entities [org.apache.openjpa.enhance.stats.AEntity,..., org.apache.openjpa.enhance.stats.EEntity]. The following fields are FetchType.EAGER and were never fetched [ total 10 ] : 

how about this :

4226 fetchStatisticPU INFO [Thread-5] openjpa.Runtime - Successfully collected fetch statistics. The following fields are FetchType.EAGER and were never fetched [ total 10 ] 
org.apache.openjpa.enhance.stats.AEntity [4]
checked
desc
extraInfo
name 
org.apache.openjpa.enhance.stats.BEntity [0]
org.apache.openjpa.enhance.stats.CEntity.[2]
name
desc
org.apache.openjpa.enhance.stats.DEntity [0]

                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Helen Xu
>            Assignee: Rick Curtis
>         Attachments: OPENJPA-2220Patch.txt, READMEpatch, statisticToolDocPatch.txt
>
>
> This task is to create a statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Updated] (OPENJPA-2220) Persistent field fetching statistic tool

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

Rick Curtis updated OPENJPA-2220:
---------------------------------

          Component/s:     (was: performance)
                       tooling
          Description: 
This task is to create a statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.



  was:
This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.



    Affects Version/s: 2.2.1
           Issue Type: Improvement  (was: Task)
    
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Helen Xu
>            Assignee: Rick Curtis
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Assigned] (OPENJPA-2220) Persistent field fetching statistic tool

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

Rick Curtis reassigned OPENJPA-2220:
------------------------------------

    Assignee: Rick Curtis  (was: Helen Xu)
    
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: tooling
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Helen Xu
>            Assignee: Rick Curtis
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401504#comment-13401504 ] 

Pinaki Poddar commented on OPENJPA-2220:
----------------------------------------

The documentation refers the availability of this feature or OpenJPA Tools repository. 
I think this is the first time we are referring to OpenJPA tools from our main documentation pages.

Several useful tools in the past has been floating around. Please open a separate discussion thread on how best we could organize our tools and ensure that they reach the users.
                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Comment Edited] (OPENJPA-2220) Persistent field fetching statistic tool

Posted by "Helen Xu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410699#comment-13410699 ] 

Helen Xu edited comment on OPENJPA-2220 at 7/10/12 6:55 PM:
------------------------------------------------------------

removed duplicate info from README doc and added the fields filtering condition.  patch attached.
                
      was (Author: helenxu):
    remove duplicate info and add the fields filtering condition
                  
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Helen Xu
>            Assignee: Rick Curtis
>         Attachments: OPENJPA-2220Patch.txt, READMEpatch, statisticToolDocPatch.txt
>
>
> This task is to create a statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

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

Rick Curtis commented on OPENJPA-2220:
--------------------------------------

After thinking more about this last night I'm thinking we could also exclude fields that are currently marked lazy.... telling the user that they didn't access a field marked as LAZY seems like noise. Thoughts?

> The tools are "unsupported" in some way -- meaning the processes (distribution, documentation, release) around them arr not as matured as that of OpenJPA. 
Agreed.
                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Updated] (OPENJPA-2220) Persistent field fetching statistic tool

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

Helen Xu updated OPENJPA-2220:
------------------------------

    Attachment: statisticToolDocPatch.txt
                OPENJPA-2220Patch.txt
    
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

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

Rick Curtis commented on OPENJPA-2220:
--------------------------------------

We should also exclude version and primary key fields as I could see where those fields aren't used directly by application code, but they are still important to the runtime.
                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

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

Rick Curtis commented on OPENJPA-2220:
--------------------------------------

I committed revision 1356860 to trunk.

This first iteration of this tool is limited in usage. Currently it is not configurable. Once it is on the classpath, it starts running. When you take it off the classpath, it stops running. It is also depended upon runtime (ie: javaagent or container enhancement) enhancement.

I modified a number of things from the original patch to make it more usable... When the code first gets loaded up you'll see this message[1] so a user is notified when it is running. Also, when the statistics are dumped you'll see a message along these lines[2].

I'll also note that I modified the pom to spit out another jar file that allows this tool to work in a WebSphere environment. 

[1] 3094  fetchStatisticPU  INFO   [main] openjpa.Runtime - The FetchStatisticsAuxEnhancer has been loaded and is tracking persistent field usage.
[2] 4226  fetchStatisticPU  INFO   [Thread-5] openjpa.Runtime - Successfully collected fetch statistics from Entities [org.apache.openjpa.enhance.stats.AEntity,...,  org.apache.openjpa.enhance.stats.EEntity]. The following fields are FetchType.EAGER and were never fetched [ total 10 ] : 
	org.apache.openjpa.enhance.stats.AEntity.checked
	org.apache.openjpa.enhance.stats.AEntity.desc
	org.apache.openjpa.enhance.stats.AEntity.extraInfo
	org.apache.openjpa.enhance.stats.AEntity.name
...
                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Helen Xu
>            Assignee: Rick Curtis
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Resolved] (OPENJPA-2220) Persistent field fetching statistic tool

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

Rick Curtis resolved OPENJPA-2220.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.0
    
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Helen Xu
>            Assignee: Rick Curtis
>             Fix For: 2.3.0
>
>         Attachments: OPENJPA-2220Patch.txt, READMEpatch, statisticToolDocPatch.txt
>
>
> This task is to create a statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENJPA-2220) Persistent field fetching statistic tool

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

Helen Xu updated OPENJPA-2220:
------------------------------

    Attachment: READMEpatch

remove duplicate info and add the fields filtering condition
                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Helen Xu
>            Assignee: Rick Curtis
>         Attachments: OPENJPA-2220Patch.txt, READMEpatch, statisticToolDocPatch.txt
>
>
> This task is to create a statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Comment Edited] (OPENJPA-2220) Persistent field fetching statistic tool

Posted by "Helen Xu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401719#comment-13401719 ] 

Helen Xu edited comment on OPENJPA-2220 at 6/26/12 10:06 PM:
-------------------------------------------------------------

Thanks for your comments.

I'll make the code change to exclude the PK fields. Version fields are excluded.

For the boolean field, the enhancer also generate the getXXXX method. it is covered in the test case.
                
      was (Author: helenxu):
    I'll make the code change to exclude the PK fields. Version fields are excluded.

For the boolean field, the enhancer also generate the getXXXX method. it is covered in the test case.
                  
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401804#comment-13401804 ] 

Pinaki Poddar commented on OPENJPA-2220:
----------------------------------------

Rick,
  > we came the consensus that if the tool has a dependency on a version of the runtime, ....
I am inviting a discussion on tools to get a better focus/attention of other members on such activity. The tools are "unsupported" in some way -- meaning the processes   (distribution, documentation, release) around them arr not as matured as that of OpenJPA.  
                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401502#comment-13401502 ] 

Pinaki Poddar commented on OPENJPA-2220:
----------------------------------------

I think it is a good/useful feature. And I appreciate your contribution.
I would suggest to expand the scope of this idea to collect more statistics on field access patterns. It has been a long-held wish for many original OpenJPA developers to collect such detailed statistics, so that based on the access pattern of correlated fields we can prescribe which fetch groups will best serve an applications need. 

A nit: to determine whether a field is persistent, the patch code checks AccessCode and if the bean-method starts with "getX" etc. That check should include boolean fields which may start with "is". You should find the logic somewhere (do not remember exactly where, but around AccessCode or classes that use it), some code that determines whether a named field is persistent.    

                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

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

Rick Curtis commented on OPENJPA-2220:
--------------------------------------

> A nit: to ...
Nice catch on the isXXXX.

> Several useful tools in the past has been floating around. Please open a separate discussion thread on how best we could organize our tools and ensure that they reach the users. 
I thought we came the consensus that if the tool has a dependency on a version of the runtime, it needs to live with the runtime code?. If it has no runtime dependency, it would live in the seperate openjpa-tools repository?  
                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool

Posted by "Helen Xu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401719#comment-13401719 ] 

Helen Xu commented on OPENJPA-2220:
-----------------------------------

I'll make the code change to exclude the PK fields. Version fields are excluded.

For the boolean field, the enhancer also generate the getXXXX method. it is covered in the test case.
                
> Persistent field fetching statistic tool
> ----------------------------------------
>
>                 Key: OPENJPA-2220
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2220
>             Project: OpenJPA
>          Issue Type: Task
>          Components: performance
>    Affects Versions: 2.3.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt
>
>
> This task is to create a  statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time.

--
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