Examples of freespace()


Examples of com.db4o.config.Configuration.freespace()

  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. :(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.