@gargan It’s always a good idea to close badger so that memtables (in-memory written data store) are flushed to the disk. If they’re not flushed, badger will recreate the tables using the WAL (vlog file).
The commit will ensure that your data will always be read after the commit completes. Maybe we should reword the docs but close is necessary only to perform successful cleanup. The data will be replayed from the WAL file if badger is not closed (or it has crashed).