pombreda / appengine-ndb-experiment

Automatically exported from code.google.com/p/appengine-ndb-experiment
Other
0 stars 0 forks source link

fetch() with offset > 1000 returns empty list #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Example: M has 1300 entities.

M.query().fetch(10, offset=1000)  -> <list of 10 entities>

M.query().fetch(10, offset=1001)  -> <empty list>

Reproduced in prod as well as in SDK.

This works as expected with old db.

Original issue reported on code.google.com by guido@google.com on 24 Sep 2012 at 9:35

GoogleCodeExporter commented 9 years ago
Looks like I'm not subtracting skipped_results from offset somewhere.

Original comment by guido@google.com on 25 Sep 2012 at 12:29

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 3e4198515ee3.

Original comment by guido@google.com on 25 Sep 2012 at 2:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fix improved upon in revision 82bfeb126025.

Original comment by guido@google.com on 25 Sep 2012 at 5:07