Reputation: 6684
It seems by default any query will only return up to 100 values.
ie:
db.values("mystore").done(function(myvalues) {
// myvalues.length <= 100, regardless of how many items are in `mystore`
});
The docs refer to the API being values(store_name, key_range, limit, offset, reverse)
, but apparently null
is not a valid limit. Also 0
and -1
just give me no results (or strangely, one result). How can I specify "unlimited results" without doing something silly like making the limit 999999
?
Upvotes: 1
Views: 167
Reputation: 13151
Yes, unlimited result is not possible and its use is discouraged. Because your app will crash at some point.
If you want unlimitted result, use streaming api such as open
or scan
.
Upvotes: 1