From 8e920f5f37d2367ba25d5997fc90072c556509dd Mon Sep 17 00:00:00 2001 From: Erik de Vries Date: Thu, 16 May 2019 11:58:34 +0200 Subject: [PATCH] elasticizer: removed idiotic 15min sleep time after 500 batches --- R/elasticizer.R | 3 --- 1 file changed, 3 deletions(-) diff --git a/R/elasticizer.R b/R/elasticizer.R index fa3f5bc..dab75a2 100644 --- a/R/elasticizer.R +++ b/R/elasticizer.R @@ -124,9 +124,6 @@ elasticizer <- function(query, src = T, index = 'maml', es_pwd = .rs.askForPassw if (length(update) > 0){ out <- jsonlite:::flatten(json$hits$hits) update(out, localhost = localhost, ...) - if (batch%%500 == 0) { - Sys.sleep(900) - } } else { out <- bind_rows(out, jsonlite:::flatten(json$hits$hits)) }