YCSB icon indicating copy to clipboard operation
YCSB copied to clipboard

[DynamoDB] add support for TTL

Open fruch opened this issue 2 years ago • 0 comments

Two new configuration option add to support enabling TimeToLive feature on dynamodb backend

  • dynamodb.ttlKey - name of the ttl key, as configured in table creation
  • dynamodb.ttlDuration - number in seconds from current time, that table would expire

example of usage:

./bin/ycsb load dynamodb -P workloads/workloada  -p dynamodb.ttlKey=ttl -p dynamodb.ttlDuration=30  -P dynamodb.properties

Ref: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/time-to-live-ttl-how-to.html

fruch avatar Aug 29 '22 15:08 fruch