Sorry if this is the wrong place to post.
I’m wondering how often we should call
db, err := badger.Open(badger.DefaultOptions("/path/to/db"))
Is it something we should do once when the application starts up and then close when it goes down, or should we open and close with each request (in a web server context) or before and after each transaction?
$ go version