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?

feita há um ano256 visualizações
1 Resposta
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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas