I was trying to use projection queries, but I had extrange issues using 
them.

I'm trying to use them like this:
    offset_group = Clients.all( \
        projection=('name', 'sex', 'birth_date', 'email', 'discount')
    ).order('-__key__').fetch(limit=10, offset=skip_recs)

The above code is supposed to bring me the last 10 clients. But actually it 
does not return the last 10 (actually returns fewer and the actual last 
record is not included). Also the results seems alternated or maybe 
even/odd are skipped. If I take off projection param, the result is as 
spected:
offset_group = Clients.all().order('-__key__').fetch(limit=10, 
offset=skip_recs)

I do not know if this is a bug in projection queries or they have to be 
used in a different way. Please help me. I would like to use projection 
queries because they are really fast!

Kind Regards,
Christopher Ramírez

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Ahgw_iP_mukJ.
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