Added 3 milliseconds between each delete/insert operation to slow down

the access to DB.
This commit is contained in:
Luca Frosini 2020-03-16 15:07:48 +01:00
parent 39e7eaa2b1
commit db6e78e252
2 changed files with 3 additions and 10 deletions

12
pom.xml
View File

@ -60,18 +60,10 @@
<artifactId>storagehub-client-library</artifactId>
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
</dependency>
<!-- Home Library dependencies MUST be removed when the storagehub add missing features -->
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>home-library-jcr</artifactId>
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>home-library</artifactId>
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
</dependency>
<!-- END of Home Library dependencies -->
<!-- Test Dependencies -->
<dependency>
<groupId>junit</groupId>

View File

@ -82,6 +82,7 @@ public abstract class DocumentElaboration {
++i;
try {
elaborateLine(line);
TimeUnit.MILLISECONDS.sleep(3);
elaborate = false;
} catch(Exception e) {
if(i != 1) {