Limit resource usage by Badger

This section is what you’re looking for: GitHub - dgraph-io/badger: Fast key-value DB in Go.