mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
adatper formatting; ops loader fix
This commit is contained in:
parent
6911fd13c9
commit
d63ba45281
@ -43,7 +43,7 @@ blocks:
|
||||
};
|
||||
|
||||
truncate-table: |
|
||||
truncate table <<keyspace:baselines>>.<<table:iot>>;
|
||||
truncate table TEMPLATE(keyspace, baselines).TEMPLATE(table:iot);
|
||||
rampup:
|
||||
params:
|
||||
cl: <<write_cl:LOCAL_QUORUM>>
|
||||
|
@ -40,7 +40,7 @@ blocks:
|
||||
PRIMARY KEY ((machine_id), time)
|
||||
) WITH CLUSTERING ORDER BY (time DESC);
|
||||
truncate-table: |
|
||||
truncate table <<keyspace:starter>>.<<table:cqlstarter>>;
|
||||
truncate table TEMPLATE(keyspace,starter).TEMPLATE(table,cqlstarter);
|
||||
schema-astra:
|
||||
params:
|
||||
prepared: false
|
||||
|
@ -15,14 +15,14 @@ blocks:
|
||||
rampup:
|
||||
ops:
|
||||
rampup-insert: |
|
||||
{
|
||||
insert: "<<collection:keyvalue>>",
|
||||
documents: [ { _id: {seq_key}, value: {seq_value} } ]
|
||||
}
|
||||
params:
|
||||
readPreference: primary
|
||||
tags:
|
||||
name: rampup-insert
|
||||
{
|
||||
insert: "<<collection:keyvalue>>",
|
||||
documents: [ { _id: {seq_key}, value: {seq_value} } ]
|
||||
}
|
||||
params:
|
||||
readPreference: primary
|
||||
tags:
|
||||
name: rampup-insert
|
||||
|
||||
main-read:
|
||||
params:
|
||||
@ -42,9 +42,9 @@ blocks:
|
||||
type: write
|
||||
ops:
|
||||
main-insert: |
|
||||
{
|
||||
insert: "<<collection:keyvalue>>",
|
||||
documents: [ { _id: {rw_key}, value: {rw_value} } ]
|
||||
}
|
||||
params:
|
||||
readPreference: primary
|
||||
{
|
||||
insert: "<<collection:keyvalue>>",
|
||||
documents: [ { _id: {rw_key}, value: {rw_value} } ]
|
||||
}
|
||||
params:
|
||||
readPreference: primary
|
@ -71,7 +71,7 @@ blocks:
|
||||
name: "city_idx"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
rampup-write:
|
||||
ops:
|
||||
@ -104,8 +104,10 @@ blocks:
|
||||
"debt": null,
|
||||
"match1": {match1},
|
||||
"match2": "{match2}",
|
||||
"match3": {match2}
|
||||
{additional_fields}
|
||||
"match3": {match2},
|
||||
{
|
||||
additional_fields
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -124,20 +126,20 @@ blocks:
|
||||
filter: eq
|
||||
ops:
|
||||
read-document: |
|
||||
{
|
||||
find: "<<collection:search_basic>>",
|
||||
filter: { match3: true }
|
||||
}, <<field-projection:null>>
|
||||
{
|
||||
find: "<<collection:search_basic>>",
|
||||
filter: { match3: true }
|
||||
}, <<field-projection:null>>
|
||||
|
||||
main-lt:
|
||||
params:
|
||||
filter: lt
|
||||
ops:
|
||||
read-document: |
|
||||
{
|
||||
find: "<<collection:search_basic>>",
|
||||
filter: { match1: {$lt: 1}}
|
||||
}, <<field-projection:null>>
|
||||
{
|
||||
find: "<<collection:search_basic>>",
|
||||
filter: { match1: {$lt: 1}}
|
||||
}, <<field-projection:null>>
|
||||
|
||||
main-and:
|
||||
params:
|
||||
@ -154,10 +156,10 @@ blocks:
|
||||
filter: or
|
||||
ops:
|
||||
read-document: |
|
||||
{
|
||||
find: "<<collection:search_basic>>",
|
||||
filter: { $or: [ {match1: {$lt: 1}}, {match3: true}]}
|
||||
}, <<field-projection:null>>
|
||||
{
|
||||
find: "<<collection:search_basic>>",
|
||||
filter: { $or: [ {match1: {$lt: 1}}, {match3: true}]}
|
||||
}, <<field-projection:null>>
|
||||
|
||||
main-or-single-match:
|
||||
params:
|
||||
|
@ -81,7 +81,9 @@ public class OpsLoader {
|
||||
|
||||
transformer.checkpointAccesses().forEach((k, v) -> {
|
||||
layered.addTemplateVariable(k, v);
|
||||
params.remove(k);
|
||||
if (params.containsKey(k)) {
|
||||
params.remove(k);
|
||||
}
|
||||
});
|
||||
|
||||
return layered;
|
||||
|
Loading…
Reference in New Issue
Block a user