private Configuration getNewDatabaseConfiguration(DatabaseKey databaseKey) {
Configuration dbConfig = Db4o.newConfiguration();
/* On my db4o test node with lots of downloads, and several days old, com.db4o.internal.freespace.FreeSlotNode
* used 73MB out of the 128MB limit (117MB used). This memory was not reclaimed despite constant garbage collection.
* This is unacceptable, hence btree freespace. */
dbConfig.freespace().useBTreeSystem();
/*
* HashMap: don't enable cascade on update/delete/activate, db4o handles this
* internally through the TMap translator.
*/
// LAZY appears to cause ClassCastException's relating to db4o objects inside db4o code. :(