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 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 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: 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-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-write: run driver=dynamodb tags==block:main-write cycles===TEMPLATE(main-cycles,10000000) threads=auto
bindings: bindings:
seq_key: Mod(<<keycount:1000000000>>); ToString() -> String seq_key: Mod(<<keycount:1000000000>>); ToString() -> String

View File

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