DynamoDB .NET - Delete all items from a table

前端 未结 1 2050
[愿得一人]
[愿得一人] 2020-12-21 13:10

I\'m learning how to work with DynamoDB for .net and I have a doubt, Is there a correct way to delete all items from an existing table?, I mean, I don\'t want to delete the

相关标签:
1条回答
  • 2020-12-21 13:28

    I would recommend that you just delete the table and recreate it. From the DynamoDB Guidelines for Working with Tables documentation:

    ...

    Deleting an entire table is significantly more efficient than removing items one-by-one, which essentially doubles the write throughput as you do as many delete operations as put operations.

    0 讨论(0)
提交回复
热议问题