Clearing a named graph with many triples through rdf4j with clear(context) function is slow. Even, manually deleting a named graph through the graphdb interface http://localhost:7200/graphs is slow. I tried to play with the JVM memory according to those guidelines. My server has 64GB RAM, and I am calling graphdb with 40GB JVM memory, the 'graphdb.page.cache.size' is being set to default value '17.8G' :
./graphdb -Xnx40g
but there is no improvement in time when clearing a named graph. It takes approximately 40sec.
Any advice?