brianfrankcooper / YCSB

Yahoo! Cloud Serving Benchmark
Apache License 2.0
4.9k stars 2.22k forks source link

[DynamoDB] add support for TTL #1636

Open fruch opened 2 years ago

fruch commented 2 years ago

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

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