perf: optimise import batching
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M internal/storage/store.go → internal/storage/store.go
@@ -17,7 +17,7 @@ "alin.ovh/searchix/internal/file" "alin.ovh/searchix/internal/nix" ) -var BatchSize = 10000 +var BatchSize = 50000 type Options struct { Replace bool@@ -65,7 +65,7 @@ return nil, fault.Wrap(err, fmsg.With("failed to open database")) } if !opts.LowMemory { - bb.Bolt.AllocSize = 100 * 1024 * 1024 + bb.Bolt.AllocSize = 256 * 1024 * 1024 } return &Store{