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?

posta un anno fa256 visualizzazioni
1 Risposta
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
ESPERTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande