删除数据DynamoDb表自动 [英] Deleting Data from DynamoDb Table automatically

查看:137
本文介绍了删除数据DynamoDb表自动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何种类的DynamoDB生活保留期的概念。

Is there any kind of life retention period concept in DynamoDB.

我的意思是有一个表里面的数据会在一段时间后删除就像我们可以设置在S3有些保留期限的方式等。

I mean is there any way such that data inside a table will be deleted after some time like we can set some retention period in S3.

谢谢

推荐答案

没有,有没有保留在DynamoDB设置可用。

No, there is no "retention" setting available in DynamoDB.

您可以运行使用日期字段筛选结果每天/每月的查询,并使用该输出以确定要删除的项目。这将需要在你自己的编程code实现的。

You could run a daily/monthly query that uses a date field to filter results, and use that output to determine which Items to delete. This would need to be implemented in your own programming code.

一些用户选择使用不同的表,可以老化。例如,为每个月创建一个单独的表。然后,删除旧表一旦过了某个年龄。然而,你的软件必须知道如何处理数据的多个表。

Some users choose to use separate tables to provide ageing. For example, create a separate table for each month. Then, delete old tables once they pass a certain age. However, your software would have to know how to handle multiple tables of data.

例如:

  • Reference to monthly rotation of tables
  • Understand Access Patterns for Time Series Data

这篇关于删除数据DynamoDb表自动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆