Commands: How to compact database?
To compact a database, please use
compactDatabase command available in
public Operation compactDatabase(String databaseName);
||Name of a database to compact
Operation operation = store.getDatabaseCommands().getGlobalAdmin().compactDatabase("Northwind");
Compacting operation is executed asynchronously and during this operation the database will be offline.