当DynamoDB TTL设置为Epoch TimeStamp中时会发生什么?
根据此文档,必须以秒为单位设置TTL。但是,如果将TTL设置为MS,则将数据设置为MS时,将会发生什么?
我们在DynamoDB中有5个月的数据,其中TTL被错误地设置为13位时期时间戳(MS)。 任何输入都非常感谢,感谢提前。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是您设定的合法价值,将来很远。如果您可以超级耐心,那么问题将在几千年之内解决。 )
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. ;)
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).