1

I'm trying to fetch all records from the IndexedDB using YDN-DB.js like so:

var keyRange = new ydn.db.KeyRange.lowerBound(0, true);
var cursor = new ydn.db.IndexValueIterator(store, keyName, keyRange);
return this.database.values(store, keyRange);

Where of course store is the name of the IndexedDb store and keyName is one of the indexes.

The result seems to be only an array of length 100, even though I am requesting for all rows with keyName >= 0.

What I am doing wrong?

UPDATE:

I have tried without keyRange and cursor like so:

return this.database.values(store);

But I get the same result.

4

1 回答 1

2

The API documentation show result is limited to 100 by default.

于 2015-03-28T14:41:04.803 回答