mmm: reduce default mmap size.

This commit is contained in:
fiatjaf
2026-03-30 08:10:08 -03:00
parent 117a304f68
commit d1fdc262f2
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ func (il *IndexingLayer) Init() error {
env.SetMaxDBs(9)
env.SetMaxReaders(1000)
env.SetMapSize(1 << 38) // ~273GB
env.SetMapSize(MMAP_INFINITE_SIZE)
// create directory if it doesn't exist and open it
if err := os.MkdirAll(path, 0755); err != nil {