lmdb: increase number of max readers to 1000.

This commit is contained in:
fiatjaf
2023-12-07 18:05:18 -03:00
parent 0390512f9a
commit ea79f525f4

View File

@@ -48,7 +48,7 @@ func (b *LMDBBackend) Init() error {
} }
env.SetMaxDBs(10) env.SetMaxDBs(10)
env.SetMaxReaders(500) env.SetMaxReaders(1000)
env.SetMapSize(1 << 38) // ~273GB env.SetMapSize(1 << 38) // ~273GB
// create directory if it doesn't exist and open it // create directory if it doesn't exist and open it