Updating the examples and workload with Delete table operation

This commit is contained in:
Madhavan Sridharan 2022-04-01 09:14:50 -04:00
parent fd857670df
commit 6a49348cef
3 changed files with 20 additions and 0 deletions

View File

@ -7,6 +7,8 @@ scenarios:
read: run driver=dynamodb tags=block:read region=us-east-1
main: run driver=dynamodb tags=block:main region=us-east-1
read01: run driver=dynamodb tags='name:.*main-read-01' region=us-east-1
delete:
table: run driver=dynamodb tags==block:delete threads==1 cycles==UNDEF
bindings:
# for ramp-up and verify phases
@ -173,3 +175,10 @@ blocks:
ConsistentRead: true
projection: data0, data1, data2, data3, data4, data5, data6, data7
Limit: "{limit}"
- name: delete
tags:
phase: delete
ops:
delete-table:
DeleteTable: TEMPLATE(table,tabular)

View File

@ -13,6 +13,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
delete:
table: run driver=dynamodb tags==block:delete threads==1 cycles==UNDEF
params:
instrument: TEMPLATE(instrument,true)
@ -82,3 +84,7 @@ blocks:
order: reverse
limit: 10
delete:
ops:
delete-table:
DeleteTable: TEMPLATE(table,timeseries)

View File

@ -38,6 +38,7 @@ Specifically, the following commands are supported as of this release:
* GetItem
* PutItem
* Query
* DeleteTable
## Examples
@ -103,4 +104,8 @@ ops:
## optionally, set an exclusive start key
# ExclusiveStartKey: key-spec
example-DeleteTable:
# the type and target of the command
# the table identifier/name (string) to delete
DeleteTable: TEMPLATE(table,timeseries)
```