Pagination

There is a 1 MB limit on the size of data returned for Query and Scan operations. At times the response data may be over 1 MB, in which case these operations will paginate the result set.

In response to scan and query you will receive the items in a page that will be equal to or less than 1 MB. Presence of the attribute LastEvaluatedKey in the response indicates that there are more pages in the result set. Application then needs to repeat the same Scan/Query call with the LastEvaluated key till the last page in which the attribute LastEvaluated will not exist.

pagination