From 6446b4adeaa8aee3e6221af0b2b378ec7b7e2fed Mon Sep 17 00:00:00 2001 From: Lazy Nina Date: Mon, 3 Jun 2024 21:21:49 -0400 Subject: [PATCH] Use Performance Badger Options for snapshot db --- lib/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/snapshot.go b/lib/snapshot.go index 1c3f96adb..1762b6ce4 100644 --- a/lib/snapshot.go +++ b/lib/snapshot.go @@ -328,7 +328,7 @@ func NewSnapshot(mainDb *badger.DB, mainDbDirectory string, snapshotBlockHeightP // Initialize the ancestral records database snapshotDirectory := filepath.Join(GetBadgerDbPath(mainDbDirectory), "snapshot") - snapshotOpts := DefaultBadgerOptions(snapshotDirectory) + snapshotOpts := PerformanceBadgerOptions(snapshotDirectory) snapshotOpts.ValueDir = GetBadgerDbPath(snapshotDirectory) snapshotDb, err := badger.Open(snapshotOpts) if err != nil {