gpt4 book ai didi

amazon-dynamodb - 发电机数据库 : Scan query does not return all the data

转载 作者:行者123 更新时间:2023-12-04 02:51:19 24 4
gpt4 key购买 nike

我有一个包含数千个数据的 DynamoDb 表。我正在使用 Scan 函数扫描表格,并应用了“Between”FilterExpression。
但是,查询响应只给出 3 条记录,而它应该返回大约 100 条记录。

我已经使用 Node js 创建了 Lambda 函数。

最佳答案

另一个常见问题可能是在 LastEvaluatedKey 为空之前是否执行扫描。

如果您已经这样做了,但仍未获得所有项目,请出示您的代码以详细查看。

If the total number of scanned items exceeds the maximum data set size limit of 1 MB, the scan stops and results are returned to the user as a LastEvaluatedKey value to continue the scan in a subsequent operation. The results also include the number of items exceeding the limit. A scan can result in no table data meeting the filter criteria.

If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

关于amazon-dynamodb - 发电机数据库 : Scan query does not return all the data,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43410541/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com