dynamodb pagination

0

i try to use pagination. but how can i control if querystring parameters changes or do i have to control? there is sentence here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.Pagination.html that says: "Construct a new Query request, with the same parameters as the previous one" at step 2. maybe i don't have to control query string parameters but at least page parameter will change for every api call. if i have to check querystring parameters how?

已提問 1 年前檢視次數 255 次
1 個回答
1

querystring parameters changes or do i have to control

Im not sure on which querystring params you are referring to but pagination works like this:

  1. Request up to 1MB of data
  2. DynamoDB returns 1MB and provides you with a LastEvaluatedKey which is a pointer to the last item it read
  3. In subsequent requests, you pass LastEvaluatedKey to the ExclusiveStartKey parameter, which tells DynamoDB where to begin reading
  4. This logic keeps happening until there is no LastEvaluatedKey returned, which means you have read all the data available.
profile pictureAWS
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南