diff --git a/adapter-dynamodb/src/main/resources/activities/baselinesv2/dynamodb-tabular2.yaml b/adapter-dynamodb/src/main/resources/activities/baselinesv2/dynamodb-tabular2.yaml index d47ca708e..97ef1c39e 100644 --- a/adapter-dynamodb/src/main/resources/activities/baselinesv2/dynamodb-tabular2.yaml +++ b/adapter-dynamodb/src/main/resources/activities/baselinesv2/dynamodb-tabular2.yaml @@ -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) \ No newline at end of file diff --git a/adapter-dynamodb/src/main/resources/activities/baselinesv2/dynamodb-timeseries2.yaml b/adapter-dynamodb/src/main/resources/activities/baselinesv2/dynamodb-timeseries2.yaml index d75710b14..36e00408d 100644 --- a/adapter-dynamodb/src/main/resources/activities/baselinesv2/dynamodb-timeseries2.yaml +++ b/adapter-dynamodb/src/main/resources/activities/baselinesv2/dynamodb-timeseries2.yaml @@ -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) \ No newline at end of file diff --git a/adapter-dynamodb/src/main/resources/dynamodb.md b/adapter-dynamodb/src/main/resources/dynamodb.md index c7f280fc9..56c2f8282 100644 --- a/adapter-dynamodb/src/main/resources/dynamodb.md +++ b/adapter-dynamodb/src/main/resources/dynamodb.md @@ -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) ```