You can use limit
with the where
clause. For more detail here is the Syntax
for the Select
Query
-
select output_list from domain_name [where expression] [sort_instructions] [limit limit]
The output_list
can be: , itemName()
,count(), list of attributes
- * for all attributes.
- `itemName()` for the item name only.
- count(*) for the total count of items matches the query expression. It will return the number of items in a result set instead of returning the items.
- An explicit list of attributes (attribute1,..., attributeN)
The domain_name is the domain
from which you want to search items
.
The expression is the match expression
for items. You can use select expressions like =, <=, <, > =, like, not like, between, is null, is not null etc.
The sort_instructions
sorts the results on a single attribute, in an ascending or descending order.
The limit
is the maximum number of results to return (default: 100, max. 2500).
Please Note-
The total size of the response cannot exceed 1 MB. Amazon SimpleDB
automatically adjusts the number of items returned per page to enforce
this limit. For example, even if you ask to retrieve 2500 items, but
each individual item is 10 KB in size, the system returns 100 items
and an appropriate next token so you can get the next page of results.
Note: Operations that run longer than 5 seconds return a time-out
error response or a partial or empty result set. Partial and empty
result sets contain a NextToken value, which allows you to continue
the operation from where it left off.
Source