mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Skip inserts on counter tables, simplify multi-block tag predicates
This commit is contained in:
parent
fbd8947e7a
commit
e79b09ace7
@ -318,16 +318,16 @@ public class CGWorkloadExporter {
|
||||
|
||||
put("default",
|
||||
new LinkedHashMap<>() {{
|
||||
put("schema", "run driver=cql tags=block:schema-.* threads===UNDEF cycles===UNDEF");
|
||||
put("rampup", "run driver=cql tags=block:rampup-.* threads=auto cycles===TEMPLATE(rampup-cycles,10000)");
|
||||
put("main", "run driver=cql tags=block:main-.* threads=auto cycles===TEMPLATE(main-cycles,10000)");
|
||||
put("schema", "run driver=cql tags=block:schema.* threads===UNDEF cycles===UNDEF");
|
||||
put("rampup", "run driver=cql tags=block:rampup.* threads=auto cycles===TEMPLATE(rampup-cycles,10000)");
|
||||
put("main", "run driver=cql tags=block:main.* threads=auto cycles===TEMPLATE(main-cycles,10000)");
|
||||
}});
|
||||
|
||||
put("truncate", "run driver=cql tags=block:truncate-.* threads===UNDEF cycles===UNDEF");
|
||||
put("truncate", "run driver=cql tags=block:truncate.* threads===UNDEF cycles===UNDEF");
|
||||
put("schema-keyspaces", "run driver=cql tags=block:schema-keyspaces threads===UNDEF cycles===UNDEF");
|
||||
put("schema-types", "run driver=cql tags=block:schema-types threads===UNDEF cycles===UNDEF");
|
||||
put("schema-tables", "run driver=cql tags=block:schema-tables threads===UNDEF cycles===UNDEF");
|
||||
put("drop", "run driver=cql tags=block:drop-.* threads===UNDEF cycles===UNDEF");
|
||||
put("drop", "run driver=cql tags=block:drop.* threads===UNDEF cycles===UNDEF");
|
||||
put("drop-tables", "run driver=cql tags=block:drop-tables threads===UNDEF cycles===UNDEF");
|
||||
put("drop-types", "run driver=cql tags=block:drop-types threads===UNDEF cycles===UNDEF");
|
||||
put("drop-keyspaces", "run driver=cql tags=block:drop-keyspaces threads===UNDEF cycles===UNDEF");
|
||||
@ -403,6 +403,7 @@ public class CGWorkloadExporter {
|
||||
Map<String, Object> ops = new LinkedHashMap<>();
|
||||
blockdata.put("ops", ops);
|
||||
for (CqlTable table : model.getTableDefs()) {
|
||||
if (!isCounterTable(table)) {
|
||||
ops.put(
|
||||
namer.nameFor(table, "optype", "insert", "blockname", blockname),
|
||||
Map.of(
|
||||
@ -412,6 +413,7 @@ public class CGWorkloadExporter {
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
return blockdata;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user