FWIW, this behavior appears to be a bug in NDB. I've filed
http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=210
I'll investigate.

On Wed, Sep 19, 2012 at 4:22 PM, Guido van Rossum <[email protected]> wrote:
> On Wednesday, September 19, 2012 8:51:48 AM UTC-7, Moises Belchin wrote:
>>
>> Hi guys,
>>
>> I have this query:
>>
>> q = MyKind.query()
>> regs = q.fetch(offset = 990, limit = 10) // Returns 10 entities.
>>
>> If I press next button on my UI:
>>
>> q = MyKind.query()
>> regs = q.fetch(offset = 1000, limit = 10) // Returns 0  entities .
>>
>> MyKind has 1300 entities.
>>
>> Any thoughts?
>>
>> Thanks and regards.
>> Moisés Belchín.
>
>
> I can confirm this. I believe it is intentional to encourage you to use
> cursors instead of offsets for such queries; internally, you are paying for
> reading all the entities that you are skipping using the offset.
>
> --Guido



-- 
--Guido van Rossum (python.org/~guido)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to