From 0e3359017ce8019704984bf232e6916badedbebe Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Thu, 19 Nov 2015 15:37:44 +0100 Subject: Make check_entries chunk size configurable and bump default to 1000 --- src/frontend.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend.erl b/src/frontend.erl index 6ce31b0..8fa4f58 100644 --- a/src/frontend.erl +++ b/src/frontend.erl @@ -201,7 +201,7 @@ check_entries(Treesize) -> check_entries_chunked(Start, End) -> lager:debug("Checking entries ~p-~p", [Start, End]), - Chunksize = 1, + Chunksize = application:get_env(plop, check_entries_chunksize, 1000), PartialEnd = min(Start + Chunksize - 1, End), case check_entries_onechunk(Start, PartialEnd) of [] when PartialEnd == End -> -- cgit v1.1