As the question says, I have about 200million data records in a table in dynamoDB. I am writing a script in nodejs that needs to delete all data without a TTL. I have 3 ideas for this, and I am curious on thoughts about how I should go about doing this on so many records.
batchWrite, this option I would scan then paginate through the whole table, deleting each record as it meets the condition of not currently having a ttl
push all records that dont have a ttl to a new table and then delete that table all at once
set a ttl for records that dont have one, but I cant find any information if this is even a thing or if I can somehow bulk add a ttl to all records without one
Any information is helpful, please let me know how I can go about doing this! Thank you