[Hibernate-JIRA] Created: (HHH-2867) HIbernate reflection optimization with javassist MUCH slower than in previous versions with cglib
by MG (JIRA)
HIbernate reflection optimization with javassist MUCH slower than in previous versions with cglib
-------------------------------------------------------------------------------------------------
Key: HHH-2867
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2867
Project: Hibernate3
Issue Type: Bug
Components: core
Affects Versions: 3.2.3
Reporter: MG
Hibernate reflection optimization with javassist MUCH slower than in previous versions with cglib,
and there is no way to set it to use cglib anymore
I'm setting
hibernate.bytecode.provider=cglib
in hibernate.properties
but it is still using javassist
[java] 10:42:00,675 INFO [Version] Hibernate Annotations 3.2.1.GA
[java] 10:42:00,722 INFO [Environment] Hibernate 3.2.3
[java] 10:42:00,737 INFO [Environment] loaded properties from resource hibernate.properties: {hibernate.jdbc.use_streams_for_binary=fal
se, hibernate.bytecode.use_reflection_optimizer=true, hibernate.bytecode.provider=cglib}
[java] 10:42:00,737 INFO [Environment] using bytecode reflection optimizer
[java] 10:42:00,737 INFO [Environment] Bytecode provider name : javassist
[java] 10:42:00,753 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
Please, check sample code in
http://jira.jboss.com/jira/browse/JBSEAM-1977
which compares cglib with javassist optimizations
cglib beats JDK 5 reflection almost 10 times
javassist performs even slower than JDK 5 reflection
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months
[Hibernate-JIRA] Created: (HHH-2868) SubqueryExpression create wrong sql in the case DetachedCriteria has Subcriteria
by Sunao Suzuki (JIRA)
SubqueryExpression create wrong sql in the case DetachedCriteria has Subcriteria
--------------------------------------------------------------------------------
Key: HHH-2868
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2868
Project: Hibernate3
Issue Type: Bug
Components: core
Affects Versions: 3.2.5
Environment: oracle
Reporter: Sunao Suzuki
Priority: Critical
SubqueryExpression create wrong sql in the case DetachedCriteria has Subcriteria(inner join).
in the case using DetachedCriteria( has Subcriteria) like below , it's works good.
DetachedCriteria dc = DetachedCriteria.forClass(Person.class);
DetachedCriteria in = dc.createCriteria("emails");
in.add(Restrictions.eq("personEmailId", (long)1));
dc.setProjection(Projections.id());
Criteria c = dc.getExecutableCriteria(session);
c.list();
select this_.PERSON_ID as y0_ from PERSON this_ inner join PERSON_EMAIL personemai1_ on this_.PERSON_ID=personemai1_.FK_PERSON_ID where personemai1_.PERSON_EMAIL_ID=?
But in the case using DetachedCriteria( has Subcriteria) for subquery like below, it doesn't work.
DetachedCriteria dc = DetachedCriteria.forClass(Person.class);
DetachedCriteria in = dc.createCriteria("emails");
in.add(Restrictions.eq("personEmailId", (long)1));
dc.setProjection(Projections.id());
Criteria c = session.createCriteria(Person.class);
c.add(Subqueries.propertyIn("personId", dc));
c.setProjection(Projections.id());
c.list();
select this_.PERSON_ID as y0_ from PERSON this_ where this_.PERSON_ID in (select this0__.PERSON_ID as y0_ from PERSON this0__ where personemai1_.PERSON_EMAIL_ID=?)
I hope fix quickly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months