to avoid overload on graphdb heap it is better to slowing down query execution
This commit is contained in:
parent
5bb65a8854
commit
173b0c289e
|
@ -71,6 +71,12 @@ public class RunSPARQLQueryService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private int executeQueryGraph(String selectQueryTemplate, String recordId, boolean isCollection){
|
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 );
|
log.info("Retrieving "+recordId+" - isCollection:"+isCollection );
|
||||||
String query = selectQueryTemplate.replaceAll("%record", "<"+recordId+">");
|
String query = selectQueryTemplate.replaceAll("%record", "<"+recordId+">");
|
||||||
openConnection();
|
openConnection();
|
||||||
|
|
Loading…
Reference in New Issue