Author: toad
Date: 2008-06-25 17:52:48 +0000 (Wed, 25 Jun 2008)
New Revision: 20704
Modified:
branches/db4o/freenet/src/freenet/node/Node.java
Log:
Turn off LAZY for now
Modified: branches/db4o/freenet/src/freenet/node/Node.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/Node.java 2008-06-25 17:49:29 UTC
(rev 20703)
+++ branches/db4o/freenet/src/freenet/node/Node.java 2008-06-25 17:52:48 UTC
(rev 20704)
@@ -732,7 +732,10 @@
* Having said that, if we only run it once, and especially if
we make splitfile
* inserts work like splitfile requests, it may not be a big
problem.
*/
-
Db4o.configure().queries().evaluationMode(QueryEvaluationMode.LAZY);
+ // LAZY appears to cause ClassCastException's relating to db4o
objects inside db4o code. :(
+ // Also it causes duplicates if we activate immediately.
+ // And the performance gain for e.g. RegisterMeRunner isn't
that great.
+//
Db4o.configure().queries().evaluationMode(QueryEvaluationMode.LAZY);
Db4o.configure().messageLevel(1);
Db4o.configure().activationDepth(1);
System.err.println("Optimise native queries:
"+Db4o.configure().optimizeNativeQueries());