mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-23 07:34:31 -06:00
adding examples
This commit is contained in:
parent
7cf6dab367
commit
8702aec522
@ -0,0 +1,14 @@
|
||||
scenarios:
|
||||
optimize_rate:
|
||||
query: start alias=query_step tags='block:query' driver=stdout cycles=1000
|
||||
findmax: findmax activity=query_step base_value=100 step_value=50 min_frames=5 optimization_type=rate
|
||||
optimo: optimo activity=query_step startrate=${findmax.rate}
|
||||
|
||||
bindings:
|
||||
number: Identity()
|
||||
|
||||
blocks:
|
||||
query:
|
||||
ops:
|
||||
query_op: "SELECT * FROM my_table WHERE id={number};"
|
||||
|
@ -0,0 +1,14 @@
|
||||
scenarios:
|
||||
optimize_rate:
|
||||
query: start alias=query_step tags='block:query' driver=stdout cycles=1000
|
||||
findmax: findmax activity=query_step base_value=20 step_value=10 min_frames=5 optimization_type=threads
|
||||
optimo: optimo activity=query_step start_threads=${findmax.threads}
|
||||
|
||||
bindings:
|
||||
number: Identity()
|
||||
|
||||
blocks:
|
||||
query:
|
||||
ops:
|
||||
query_op: "SELECT * FROM my_table WHERE id={number};"
|
||||
|
13
nbr/src/main/resources/examples/optimizers/findmax_rate.yaml
Normal file
13
nbr/src/main/resources/examples/optimizers/findmax_rate.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
scenarios:
|
||||
optimize_rate:
|
||||
query: start alias=query_step tags='block:query' driver=stdout cycles=1000
|
||||
findmax: findmax activity=query_step base_value=100 step_value=50 min_frames=5 optimization_type=rate
|
||||
|
||||
bindings:
|
||||
number: Identity()
|
||||
|
||||
blocks:
|
||||
query:
|
||||
ops:
|
||||
query_op: "SELECT * FROM my_table WHERE id={number};"
|
||||
|
@ -0,0 +1,12 @@
|
||||
scenarios:
|
||||
optimize_rate:
|
||||
query: start alias=query_step tags='block:query' driver=stdout cycles=1000
|
||||
findmax: findmax activity=query_step base_value=20 step_value=10 min_frames=5 optimization_type=threads
|
||||
|
||||
bindings:
|
||||
number: Identity()
|
||||
|
||||
blocks:
|
||||
query:
|
||||
ops:
|
||||
query_op: "SELECT * FROM my_table WHERE id={number};"
|
Loading…
Reference in New Issue
Block a user