Skip to content

Commit 64ce9ac

Browse files
committed
GH-5691 CLI for running and storing query explanations
1 parent 522dbb1 commit 64ce9ac

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

testsuites/benchmark/src/main/java/org/eclipse/rdf4j/benchmark/plan/QueryPlanSnapshotCli.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ private void runCaptureMode(QueryPlanSnapshotCliOptions options) throws Exceptio
171171

172172
private void runSingleQueryCapture(QueryPlanSnapshotCliOptions options,
173173
QueryPlanSnapshotStoreSupport.StoreRuntime storeRuntime) throws Exception {
174-
QueryPlanSnapshotStoreSupport.loadThemeData(storeRuntime.repository, options.theme);
174+
for (Theme theme : Theme.values()) {
175+
QueryPlanSnapshotStoreSupport.loadThemeData(storeRuntime.repository, theme);
176+
}
175177
BenchmarkQuery benchmarkQuery = resolveBenchmarkQuery(options);
176178
String queryText = resolveQueryText(options, benchmarkQuery);
177179
String querySource = benchmarkQuery == null ? "direct" : "theme-index";
@@ -223,6 +225,9 @@ private void runAllThemeQueriesCapture(QueryPlanSnapshotCliOptions options,
223225

224226
for (Theme theme : allThemes) {
225227
QueryPlanSnapshotStoreSupport.loadThemeData(storeRuntime.repository, theme);
228+
}
229+
230+
for (Theme theme : allThemes) {
226231
for (int queryIndex = 0; queryIndex < ThemeQueryCatalog.QUERY_COUNT; queryIndex++) {
227232
current++;
228233
BenchmarkQuery benchmarkQuery = ThemeQueryCatalog.benchmarkQueryFor(theme, queryIndex);

0 commit comments

Comments
 (0)