yaml fixes

This commit is contained in:
Jonathan Shook 2022-03-09 14:38:39 -06:00
parent 8cf73de783
commit 2dc6b42109
2 changed files with 7 additions and 7 deletions

View File

@ -7,8 +7,8 @@ scenarios:
schema: run driver=dynamodb tags==block:schema threads==1 cycles==UNDEF
rampup: run driver=dynamodb tags==block:rampup cycles===TEMPLATE(rampup-cycles,10000000) threads=auto
main: run driver=dynamodb tags=='block:main.*' cycles===TEMPLATE(main-cycles,10000000) threads=auto
main-read: run driver=dynamodb tags==block:main-read cycles===TEMPLATE(main-cycles,10000000) threads=auto
main-write: run driver=dynamodb tags==block:main-write cycles===TEMPLATE(main-cycles,10000000) threads=auto
main-read: run driver=dynamodb tags==block:main-read cycles===TEMPLATE(main-cycles,10000000) threads=auto
main-write: run driver=dynamodb tags==block:main-write cycles===TEMPLATE(main-cycles,10000000) threads=auto
bindings:
seq_key: Mod(<<keycount:1000000000>>); ToString() -> String

View File

@ -24,7 +24,7 @@ blocks:
- name: schema
tags:
phase: schema
params:
# params:
statements:
- create-database: |
CREATE DATABASE <<database:bank>>;
@ -40,13 +40,13 @@ blocks:
- name: rampup
tags:
phase: rampup
params:
# params:
statements:
- rampup-insert: |
INSERT INTO "<<database:bank>>"."<<table:banktransaction>>"
(code, amount) VALUES ('{seq_key}', {seq_value})
ON CONFLICT (code) DO NOTHING;
params:
# params:
tags:
name: rampup-insert
- name: main-read
@ -59,7 +59,7 @@ blocks:
- main-find: |
SELECT code, amount FROM "<<database:bank>>"."<<table:banktransaction>>"
WHERE code = '{rw_key}' AND amount = {rw_value};
params:
# params:
tags:
name: main-find
- name: main-write
@ -71,6 +71,6 @@ blocks:
statements:
- main-insert: |
UPDATE "<<database:bank>>"."<<table:banktransaction>>" SET amount = {seq_value} WHERE code = '{seq_key}';
params:
# params:
tags:
name: main-insert