From: Wolfgang M. M. <wol...@us...> - 2004-08-16 19:53:56
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xmlrpc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19982/src/org/exist/xmlrpc Modified Files: RpcConnection.java Log Message: Removed the cache sync events that had been triggered by every database file independantly. Instead, the global BrokerPool will now trigger all sync events (through the SyncDaemon background thread). It distinguishes between minor and major syncs. Major syncs write all caches to disk, minor syncs only write the main document store (dom.dbx + collections.dbx). Minor syncs occur every 2 seconds, major syncs after a configurable period of time. As BrokerPool controls all sync events, it is guaranteed that only one cache is written at the same time. This has a positive effect on indexing performance. Index: RpcConnection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmlrpc/RpcConnection.java,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** RpcConnection.java 12 Aug 2004 16:07:18 -0000 1.67 --- RpcConnection.java 16 Aug 2004 19:53:47 -0000 1.68 *************** *** 72,75 **** --- 72,76 ---- import org.exist.storage.serializers.EXistOutputKeys; import org.exist.storage.serializers.Serializer; + import org.exist.storage.sync.Sync; import org.exist.util.Configuration; import org.exist.util.Lock; *************** *** 638,642 **** try { broker = brokerPool.get(); ! broker.sync(); } catch (EXistException e) { } finally { --- 639,643 ---- try { broker = brokerPool.get(); ! broker.sync(Sync.MAJOR_SYNC); } catch (EXistException e) { } finally { |