mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Changed copy on write to occur during lookup, rather than after lookup.
Much carnage, but it's way faster. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -50,7 +50,7 @@ public class AVMServiceTestBase extends TestCase
|
||||
@Override
|
||||
protected void setUp() throws Exception
|
||||
{
|
||||
HibernateHelper.GetSessionFactory().getStatistics().setStatisticsEnabled(true);
|
||||
// HibernateHelper.GetSessionFactory().getStatistics().setStatisticsEnabled(true);
|
||||
AVMServiceImpl service = new AVMServiceImpl();
|
||||
service.setStorage("build/test-results/storage");
|
||||
service.init(true);
|
||||
@@ -66,9 +66,9 @@ public class AVMServiceTestBase extends TestCase
|
||||
{
|
||||
long now = System.currentTimeMillis();
|
||||
System.out.println("Timing: " + (now - fStartTime) + "ms");
|
||||
Statistics stats = HibernateHelper.GetSessionFactory().getStatistics();
|
||||
stats.logSummary();
|
||||
stats.clear();
|
||||
// Statistics stats = HibernateHelper.GetSessionFactory().getStatistics();
|
||||
// stats.logSummary();
|
||||
// stats.clear();
|
||||
HibernateHelper.Reset();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user