Propose adding an additional numeric parameter Pages to query and scan requests. These would come in alongside all the other options that the aws-sdk already accepts. The idea would be:
a 0 would callback with an error, this is an invalid parameter value
an undefined, null, or 1 value would return 1 page of results (default behavior)
any other number will return up to that number of pages
a value of Infinity would return all available pages
So an example request like this one would return up to 10 pages of results:
The response should look identical to the response for any single page, except that data.Items would include all the records that were read. Additionally, if ReturnConsumedCapacity is requested, those metrics should be the sum of capacity consumed by all the requests performed.
Propose adding an additional numeric parameter
Pages
to query and scan requests. These would come in alongside all the other options that the aws-sdk already accepts. The idea would be:0
would callback with an error, this is an invalid parameter valueundefined
,null
, or1
value would return 1 page of results (default behavior)Infinity
would return all available pagesSo an example request like this one would return up to 10 pages of results:
The response should look identical to the response for any single page, except that
data.Items
would include all the records that were read. Additionally, ifReturnConsumedCapacity
is requested, those metrics should be the sum of capacity consumed by all the requests performed.cc @mick