[hibernate-issues] [Hibernate-JIRA] Created: (HHH-7217) Performance dropped between 3.6 and 4.1.1 using cached entities

Emeric Fillatre (JIRA) noreply at atlassian.com
Tue Apr 3 12:01:50 EDT 2012


Performance dropped between 3.6 and 4.1.1 using cached entities
---------------------------------------------------------------

                 Key: HHH-7217
                 URL: https://hibernate.onjira.com/browse/HHH-7217
             Project: Hibernate ORM
          Issue Type: Improvement
          Components: caching (L2)
    Affects Versions: 4.1.1
         Environment: Hibernate 4.1.1.final, mysql 5, atomikos 3.7
            Reporter: Emeric Fillatre
         Attachments: jta-cached.JPG, jta-not cached.JPG, non-jta.JPG

It seems that performance has dropped between 3.6 and 4.1.1
I was trying to upgrade to the new version and ran some unit tests while i found that having just upgraded the librayries, keeping the same code and configuration, some execution looked slower

I run several tests to try to figure out where it could come from and noticed that repetable cached entities read seems much longer.
I tested hibernate 3.6, using atomikos as JTA 3.7 implentation and infinispan 4.2.1 against hibernate 4.1.1, atomikos 3.7 and infinispan 5.1.2 in different scenarios :
non JTA transaction, JTA transaction with entities not declared as cacheable and JTA transaction with cacheable entities for both configurations.

It seems that multiple successive reads are more than 3 times slower in the last scenario using hibernate 4.

You could find included test results with on the left side, the 3.6 configuration and on the right side the 4.1.1 one.
The last test on each run represents the successive load by the ID of the same entity a thousand times.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list