to avoid overload on graphdb heap it is better to slowing down query execution

This commit is contained in:
Enrico Ottonello 2020-07-22 23:47:08 +02:00
parent 5bb65a8854
commit 173b0c289e
1 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,12 @@ public class RunSPARQLQueryService {
}
private int executeQueryGraph(String selectQueryTemplate, String recordId, boolean isCollection){
// to avoid heap overload on graphdb
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
log.info("Retrieving "+recordId+" - isCollection:"+isCollection );
String query = selectQueryTemplate.replaceAll("%record", "<"+recordId+">");
openConnection();