当DynamoDB TTL设置为Epoch TimeStamp中时会发生什么?

发布于 2025-01-30 12:08:01 字数 252 浏览 6 评论 0 原文

根据此文档,必须以秒为单位设置TTL。但是,如果将TTL设置为MS,则将数据设置为MS时,将会发生什么?

我们在DynamoDB中有5个月的数据,其中TTL被错误地设置为13位时期时间戳(MS)。 任何输入都非常感谢,感谢提前。

As per this documentation https://aws.amazon.com/premiumsupport/knowledge-center/ttl-dynamodb/ , the ttl must be set in seconds. but what will happen to the data if the ttl has been set incorrectly as ms while saving to dynamodb?

we have 5 months of data in dynamodb where ttl has been set incorrectly as 13 digit epoch timestamp(ms).
Any inputs is much appreciated, Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

亚希 2025-02-06 12:08:01

这是您设定的合法价值,将来很远。如果您可以超级耐心,那么问题将在几千年之内解决。 )

It’s a legit value you set, just very far in the future. If you can be super patient the problem will resolve itself in a few thousand years. ;)

2025-02-06 12:08:01

DynamoDB没有内置支持质量更新。

如果我处于这种情况下,我会编写一个脚本,我在本地运行,以查询整个表格并将TTL属性更新为其正确的值。

如果数据集太大了,我会使用lambdas和一个队列(即在lambda中相应地将查询结果和lastevaletekekey键起来)。

DynamoDB has no built-in support for mass updates.

If I were in this situation, I would have written a script that i ran locally that queries the entire table and updates the TTL attribute to its correct value.

If the dataset is too large for that, I'd do it using lambdas and a queue instead (i.e. post the query results and the LastEvaluatedKey to the queue and process that accordingly in a lambda).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文