mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Removed eager join to child associations after checking that performance is not hit by using proxies
Cache size adjustments to keep association (set and map) caches down to a reasonable level after memory issues found during benchmarking git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2972 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
<!-- approx 25MB memory required -->
|
<!-- approx 25MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.NodeImpl.aspects"
|
name="org.alfresco.repo.domain.hibernate.NodeImpl.aspects"
|
||||||
maxElementsInMemory="20000"
|
maxElementsInMemory="10000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
timeToIdleSeconds="0"
|
timeToIdleSeconds="0"
|
||||||
timeToLiveSeconds="0"
|
timeToLiveSeconds="0"
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<!-- approx 50MB memory required -->
|
<!-- approx 50MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.NodeImpl.properties"
|
name="org.alfresco.repo.domain.hibernate.NodeImpl.properties"
|
||||||
maxElementsInMemory="50000"
|
maxElementsInMemory="10000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
timeToIdleSeconds="0"
|
timeToIdleSeconds="0"
|
||||||
timeToLiveSeconds="0"
|
timeToLiveSeconds="0"
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
<!-- approx 50MB memory required -->
|
<!-- approx 50MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.NodeImpl.childAssocs"
|
name="org.alfresco.repo.domain.hibernate.NodeImpl.childAssocs"
|
||||||
maxElementsInMemory="50000"
|
maxElementsInMemory="10000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
timeToIdleSeconds="0"
|
timeToIdleSeconds="0"
|
||||||
timeToLiveSeconds="0"
|
timeToLiveSeconds="0"
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
<!-- approx 50MB memory required -->
|
<!-- approx 50MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs"
|
name="org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs"
|
||||||
maxElementsInMemory="50000"
|
maxElementsInMemory="10000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
timeToIdleSeconds="0"
|
timeToIdleSeconds="0"
|
||||||
timeToLiveSeconds="0"
|
timeToLiveSeconds="0"
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
<!-- approx 70MB memory required -->
|
<!-- approx 70MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.ChildAssocImpl"
|
name="org.alfresco.repo.domain.hibernate.ChildAssocImpl"
|
||||||
maxElementsInMemory="50000"
|
maxElementsInMemory="200000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
timeToIdleSeconds="0"
|
timeToIdleSeconds="0"
|
||||||
timeToLiveSeconds="0"
|
timeToLiveSeconds="0"
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
<!-- approx 20MB memory required -->
|
<!-- approx 20MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.NodeImpl.sourceNodeAssocs"
|
name="org.alfresco.repo.domain.hibernate.NodeImpl.sourceNodeAssocs"
|
||||||
maxElementsInMemory="20000"
|
maxElementsInMemory="10000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
timeToIdleSeconds="0"
|
timeToIdleSeconds="0"
|
||||||
timeToLiveSeconds="0"
|
timeToLiveSeconds="0"
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
<!-- approx 20MB memory required -->
|
<!-- approx 20MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.NodeImpl.targetNodeAssocs"
|
name="org.alfresco.repo.domain.hibernate.NodeImpl.targetNodeAssocs"
|
||||||
maxElementsInMemory="20000"
|
maxElementsInMemory="10000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
timeToIdleSeconds="0"
|
timeToIdleSeconds="0"
|
||||||
timeToLiveSeconds="0"
|
timeToLiveSeconds="0"
|
||||||
@@ -153,19 +153,19 @@
|
|||||||
<!-- approx 10MB memory required -->
|
<!-- approx 10MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.DbAccessControlListImpl"
|
name="org.alfresco.repo.domain.hibernate.DbAccessControlListImpl"
|
||||||
maxElementsInMemory="10000"
|
maxElementsInMemory="1000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
overflowToDisk="false"/>
|
overflowToDisk="false"/>
|
||||||
<!-- approx 10MB memory required -->
|
<!-- approx 10MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.DbAccessControlListImpl.entries"
|
name="org.alfresco.repo.domain.hibernate.DbAccessControlListImpl.entries"
|
||||||
maxElementsInMemory="10000"
|
maxElementsInMemory="1000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
overflowToDisk="false"/>
|
overflowToDisk="false"/>
|
||||||
<!-- approx 30MB memory required -->
|
<!-- approx 30MB memory required -->
|
||||||
<cache
|
<cache
|
||||||
name="org.alfresco.repo.domain.hibernate.DbAccessControlEntryImpl"
|
name="org.alfresco.repo.domain.hibernate.DbAccessControlEntryImpl"
|
||||||
maxElementsInMemory="25000"
|
maxElementsInMemory="5000"
|
||||||
eternal="true"
|
eternal="true"
|
||||||
overflowToDisk="false"/>
|
overflowToDisk="false"/>
|
||||||
<!-- approx 1MB memory required -->
|
<!-- approx 1MB memory required -->
|
||||||
|
@@ -100,8 +100,8 @@
|
|||||||
<set
|
<set
|
||||||
name="childAssocs"
|
name="childAssocs"
|
||||||
inverse="true"
|
inverse="true"
|
||||||
lazy="false"
|
lazy="true"
|
||||||
fetch="join"
|
fetch="select"
|
||||||
cascade="none"
|
cascade="none"
|
||||||
optimistic-lock="true" >
|
optimistic-lock="true" >
|
||||||
<key column="parent_node_id" />
|
<key column="parent_node_id" />
|
||||||
|
Reference in New Issue
Block a user