Revision: 3999
Author: [email protected]
Date: Mon Nov 29 12:16:31 2010
Log: Improved the performance of the SPSessionPersister by caching objects
found by UUID. Previously a large majority of the time spent loading
projects and changes was spent in the findByUuid method in SQLPowerUtils.
Now the found objects are stored in a cache that exists for the life of the
transaction and significantly reduces load time.
http://code.google.com/p/power-architect/source/detail?r=3999
Modified:
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectPersisterSuperConverter.java
=======================================
---
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectPersisterSuperConverter.java
Wed Sep 15 08:25:34 2010
+++
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectPersisterSuperConverter.java
Mon Nov 29 12:16:31 2010
@@ -21,7 +21,6 @@
import java.util.List;
-import ca.sqlpower.dao.session.SPObjectConverter;
import ca.sqlpower.dao.session.SessionPersisterSuperConverter;
import ca.sqlpower.object.SPObject;
import ca.sqlpower.sql.DataSourceCollection;
@@ -34,11 +33,8 @@
*/
public class ArchitectPersisterSuperConverter extends
SessionPersisterSuperConverter {
- private SPObjectConverter spObjectConverter;
-
public ArchitectPersisterSuperConverter(DataSourceCollection<? extends
SPDataSource> dsCollection, SPObject root) {
super(dsCollection, root);
- spObjectConverter = new SPObjectConverter(root);
}
@Override