Author: bdaw
Date: 2011-05-17 15:45:51 -0400 (Tue, 17 May 2011)
New Revision: 947
Modified:
idm/trunk/picketlink-idm-hibernate/src/main/resources/mappings/HibernateIdentityObject.hbm.xml
idm/trunk/picketlink-idm-hibernate/src/main/resources/mappings/HibernateIdentityObjectAttribute.hbm.xml
idm/trunk/picketlink-idm-hibernate/src/main/resources/sybase-mappings/HibernateIdentityObject.hbm.xml
idm/trunk/picketlink-idm-hibernate/src/main/resources/sybase-mappings/HibernateIdentityObjectAttribute.hbm.xml
Log:
- small perf optimizations in mappings
Modified:
idm/trunk/picketlink-idm-hibernate/src/main/resources/mappings/HibernateIdentityObject.hbm.xml
===================================================================
---
idm/trunk/picketlink-idm-hibernate/src/main/resources/mappings/HibernateIdentityObject.hbm.xml 2011-05-17
19:37:59 UTC (rev 946)
+++
idm/trunk/picketlink-idm-hibernate/src/main/resources/mappings/HibernateIdentityObject.hbm.xml 2011-05-17
19:45:51 UTC (rev 947)
@@ -12,6 +12,7 @@
<generator class="native"/>
</id>
<set name="attributes"
+ batch-size="20"
inverse="true"
cascade="all, delete-orphan"
lazy="extra"
Modified:
idm/trunk/picketlink-idm-hibernate/src/main/resources/mappings/HibernateIdentityObjectAttribute.hbm.xml
===================================================================
---
idm/trunk/picketlink-idm-hibernate/src/main/resources/mappings/HibernateIdentityObjectAttribute.hbm.xml 2011-05-17
19:37:59 UTC (rev 946)
+++
idm/trunk/picketlink-idm-hibernate/src/main/resources/mappings/HibernateIdentityObjectAttribute.hbm.xml 2011-05-17
19:45:51 UTC (rev 947)
@@ -35,8 +35,9 @@
table="jbid_io_attr_text_values"
cascade="all, delete-orphan"
access="field"
- lazy="extra"
- fetch="subselect">
+ lazy="false"
+ fetch="join"
+ batch-size="20">
<cache usage="read-write"/>
<key column="TEXT_ATTR_VALUE_ID"/>
<element type="string"
Modified:
idm/trunk/picketlink-idm-hibernate/src/main/resources/sybase-mappings/HibernateIdentityObject.hbm.xml
===================================================================
---
idm/trunk/picketlink-idm-hibernate/src/main/resources/sybase-mappings/HibernateIdentityObject.hbm.xml 2011-05-17
19:37:59 UTC (rev 946)
+++
idm/trunk/picketlink-idm-hibernate/src/main/resources/sybase-mappings/HibernateIdentityObject.hbm.xml 2011-05-17
19:45:51 UTC (rev 947)
@@ -12,6 +12,7 @@
<generator class="native"/>
</id>
<set name="attributes"
+ batch-size="20"
inverse="true"
cascade="all, delete-orphan"
lazy="extra"
Modified:
idm/trunk/picketlink-idm-hibernate/src/main/resources/sybase-mappings/HibernateIdentityObjectAttribute.hbm.xml
===================================================================
---
idm/trunk/picketlink-idm-hibernate/src/main/resources/sybase-mappings/HibernateIdentityObjectAttribute.hbm.xml 2011-05-17
19:37:59 UTC (rev 946)
+++
idm/trunk/picketlink-idm-hibernate/src/main/resources/sybase-mappings/HibernateIdentityObjectAttribute.hbm.xml 2011-05-17
19:45:51 UTC (rev 947)
@@ -35,8 +35,9 @@
table="jbid_io_attr_text_values"
cascade="all, delete-orphan"
access="field"
- lazy="extra"
- fetch="subselect">
+ lazy="false"
+ fetch="join"
+ batch-size="20">
<cache usage="read-write"/>
<key column="TEXT_ATTR_VALUE_ID"/>
<element type="string"