On Mar 29, 7:07 am, Barry Hunter <[email protected]> wrote:
> According to 
> http://code.google.com/appengine/docs/python/datastore/gqlreference.html
>
> you can sort by two (or more) properties. It will just require a new
> index to be built (which the SDK will create the definition for you)

to clarify, this is the right answer. the app engine datastore does
support built-in, efficient sorting on multiple properties. you do
*not* need to sort on any property(ies) beyond the first one in
memory. see the gql reference barry linked to, or if you're using the
Query class, just call order() multiple times, once for each property,
in order.

http://code.google.com/appengine/docs/python/datastore/queryclass.html#Query_order

--~--~---------~--~----~------------~-------~--~----~
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