【发布时间】:2018-01-10 10:27:23
【问题描述】:
当我们扫描 DynamoDB 表时,我们可以/应该使用 LastEvaluatedKey 来跟踪进度,以便我们可以在出现故障时恢复。文档说
LastEvaluateKey 是The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.
我的问题是,如果我开始扫描、暂停、插入几行并从之前的 LastEvaluatedKey 恢复扫描,我会在恢复扫描后获得这些新行吗?
我的猜测是我可能会错过所有新行中的一些,因为新键将被散列并且值可能小于LastEvaluatedKey。
我猜对了吗?感谢任何解释或文档链接。
【问题讨论】:
标签: amazon-web-services amazon-dynamodb