eventstore/bleve: replace with implementation inspired from pyramid.

This commit is contained in:
fiatjaf
2026-04-10 11:18:40 -03:00
parent a8205a3790
commit 4261bc88f8
13 changed files with 805 additions and 189 deletions
+3
View File
@@ -28,6 +28,8 @@ type BoltBackend struct {
MapSize int64
DB *bbolt.DB
ReadOnly bool
EnableHLLCacheFor func(kind nostr.Kind) (useCache bool, skipSavingActualEvent bool)
}
@@ -36,6 +38,7 @@ func (b *BoltBackend) Init() error {
Timeout: 2 * time.Second,
PreLoadFreelist: true,
FreelistType: bbolt.FreelistMapType,
ReadOnly: b.ReadOnly,
})
if err != nil {
return err