all repos — searchix @ 84f1c93bbfea63b316665dd3a0bd696ad7bb1856

Search engine for NixOS, nix-darwin, home-manager and NUR users

perf: use indexer's batch size for storage export

Alan Pearce
commit

84f1c93bbfea63b316665dd3a0bd696ad7bb1856

parent

bf84c891208a42a2bdd42f21f4190fb965de713a

1 file changed, 4 insertions(+), 0 deletions(-)

changed files
M internal/index/indexer.gointernal/index/indexer.go
@@ -320,6 +320,10 @@ return nil
}) } +func (i *WriteIndex) GetBatchSize() int { + return i.batchSize +} + func (i *WriteIndex) WithBatch( ctx context.Context, objects <-chan nix.Importable,