Try to minimize graph using mergeWithCHA
@@ -327,13 +327,15 @@ public class VulnerabilityCacheProcessorPlugin extends Plugin {
depIds.add(revision.id);
var databaseMerger = new CGMerger(depIds, dbContext, graphDao);
- var graph = databaseMerger.mergeAllDeps();
+ var graph = databaseMerger.mergeWithCHA(revision.id);
if (graph == null || graph.numNodes() == 0) {
logger.info("Empty Graph for: " + revision.toString());
persistOutput(revision, "{}");
// continue;
} else {
logger.info("Graph exists for: " + revision.toString());
+ logger.info("Graph nodes: " + graph.numNodes());
+ logger.info("Graph edges: " + graph.numArcs());
}
assert graph != null;
