You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds q.BatchSize() method to avoid the error that claims too many
datastore.next() calls due to the lack of specifying the `count`
property (= batch size).
Fixesgolang#88
* datastore: enable to set query batch size
This adds q.BatchSize() method to avoid the error that claims too many
datastore.next() calls due to the lack of specifying the `count`
property (= batch size).
Fixes#88
* Disallow negative values for BatchSize
* Deal with negative value for t.limit
and clean up to be more readable
* Add comment about possible values for t.count
* Use the same `if` block as in `Run()` for `count`
* Make BatchSize restrict to be greater than zero
I did query such below and trace of the request says there are too many datastore.next() calls.
I cannot find the method to choose "query batch size". In NDB,
batch_size
option exists in query class, but GAE/Go does not seem to have.I tried to patch
query.go
and set theCount
(=batch_size
?) to 200. I found it was finely fetching 200 entities in eachNext
request with no warnings.I want to enable to set the
Count
with theNewQuery
method. But is this a correct way?The text was updated successfully, but these errors were encountered: