Skip to content

Commit

Permalink
badger: remove default snappy compression.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 3, 2024
1 parent 3763546 commit a741bda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion badger/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v4/options"
"github.com/fiatjaf/eventstore"
"github.com/nbd-wtf/go-nostr"
)
Expand Down Expand Up @@ -38,7 +39,9 @@ type BadgerBackend struct {
}

func (b *BadgerBackend) Init() error {
db, err := badger.Open(badger.DefaultOptions(b.Path))
db, err := badger.Open(badger.DefaultOptions(b.Path).
WithCompression(options.None),
)
if err != nil {
return err
}
Expand Down

0 comments on commit a741bda

Please sign in to comment.