Datastore: runQuery limit/cursors usage not clear #195
Labels
api: datastore
Issues related to the Datastore API.
🚨
This issue needs some love.
triage me
I really want to be triaged.
DatastoreClient::runQuery
paginates through all results regardless of limit/cursors that are set. This leads to some slightly unexpected behavior in cases like the following:It takes more intimate knowledge of the library to realize that
Query::limit()
is only limiting the number of results per call to the API.To limit the results returned from the API and only get a single item one must do the following:
Would we be able to consider not automatically paging when a limit/cursor are set, or document the behavior more clearly?
Thanks! :)
The text was updated successfully, but these errors were encountered: