From db6e78e252a5563811fc5460aa08f974163a5df8 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 16 Mar 2020 15:07:48 +0100 Subject: [PATCH] Added 3 milliseconds between each delete/insert operation to slow down the access to DB. --- pom.xml | 12 ++---------- .../aggregator/persist/DocumentElaboration.java | 1 + 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index f88fc48..f59eec4 100644 --- a/pom.xml +++ b/pom.xml @@ -60,18 +60,10 @@ storagehub-client-library [1.0.0, 2.0.0-SNAPSHOT) - - org.gcube.common - home-library-jcr - [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) + org.slf4j + slf4j-api - - org.gcube.common - home-library - [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) - - junit diff --git a/src/main/java/org/gcube/accounting/aggregator/persist/DocumentElaboration.java b/src/main/java/org/gcube/accounting/aggregator/persist/DocumentElaboration.java index f9587f4..2a40c3c 100644 --- a/src/main/java/org/gcube/accounting/aggregator/persist/DocumentElaboration.java +++ b/src/main/java/org/gcube/accounting/aggregator/persist/DocumentElaboration.java @@ -82,6 +82,7 @@ public abstract class DocumentElaboration { ++i; try { elaborateLine(line); + TimeUnit.MILLISECONDS.sleep(3); elaborate = false; } catch(Exception e) { if(i != 1) {