Skip to content

Commit

Permalink
Revert "Change default activation depth to 1. This should be a major …
Browse files Browse the repository at this point in the history
…performance boost."

This reverts commit 5e8c4d6
  • Loading branch information
xor-freenet committed May 4, 2011
1 parent 75ad9fc commit 7d67452
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plugins/WebOfTrust/WebOfTrust.java
Expand Up @@ -283,14 +283,15 @@ private File getUserDataDirectory() {
* Initializes the plugin's db4o database.
*/
private ExtObjectContainer openDatabase(File file) {
Logger.minor(this, "Using db4o " + Db4o.version());
Logger.debug(this, "Using db4o " + Db4o.version());

com.db4o.config.Configuration cfg = Db4o.newConfiguration();

// Required config options:
cfg.reflectWith(new JdkReflector(getPluginClassLoader()));
cfg.activationDepth(1);
Logger.minor(this, "Default activation depth: " + cfg.activationDepth());
// TODO: Optimization: We do explicit activation everywhere. We could change this to 1 and test whether it still works.
// We have to do very careful testing though, toad_ said that db4o bugs can occur with depth 1 and manual activation...
cfg.activationDepth(10);
cfg.exceptionsOnNotStorable(true);
// The shutdown hook does auto-commit. We do NOT want auto-commit: if a transaction hasn't commit()ed, it's not safe to commit it.
cfg.automaticShutDown(false);
Expand Down

0 comments on commit 7d67452

Please sign in to comment.