I'm creating database with that code
DBMaker.fileDB("database").transactionEnable().closeOnJvmShutdown().make();
I want that the mapDB save changes to disk automatic
But when I restart the program, seeing that the changes not saved
Is there an option for auto commit?
I implemented an AutoCommitMap which is basically just a wrapper that calls db.commit() after each write operation. Maybe I'll try to add this to MapDB itself and see what @jankotek thinks about it.
I'm creating database with that code
DBMaker.fileDB("database").transactionEnable().closeOnJvmShutdown().make();
I want that the mapDB save changes to disk automatic But when I restart the program, seeing that the changes not saved Is there an option for auto commit?