eventstore: delete badger, it's too buggy.

This commit is contained in:
fiatjaf
2025-08-04 12:23:43 -03:00
parent 50c9ea3867
commit 6bda63de17
23 changed files with 19 additions and 1550 deletions

View File

@@ -9,7 +9,6 @@ import (
"fiatjaf.com/nostr"
"fiatjaf.com/nostr/eventstore"
"fiatjaf.com/nostr/eventstore/badger"
"fiatjaf.com/nostr/eventstore/lmdb"
"fiatjaf.com/nostr/eventstore/slicestore"
)
@@ -28,12 +27,6 @@ func BenchmarkLMDB(b *testing.B) {
runBenchmarkOn(b, l)
}
func BenchmarkBadger(b *testing.B) {
d := &badger.BadgerBackend{Path: dbpath + "badger"}
d.Init()
runBenchmarkOn(b, d)
}
func runBenchmarkOn(b *testing.B, db eventstore.Store) {
for i := 0; i < 10000; i++ {
eTag := make([]byte, 32)