> > > When retrieving the list of Friends, I want all the information associated > with each user account (high score, etc). I do this by iterating through > the FriendsList and issuing a query for each Friend. >
Better would be use get by key lookups, so can avoid actully running queries. https://developers.google.com/appengine/docs/python/ndb/entities#retrieving_entities get by key should be more lightweight that actual queries. (ie store keys in your string list, not usernames) > Due to timeouts, this limits the number of friends to around 20.... which > sucks. > Can use a IN query, which should give you 30 at a time https://developers.google.com/appengine/docs/python/ndb/queries#neq_and_in Its still multiple queries under the hood, but the Datastore does the merging, which in theory it can do using async queries. > > How do I remove the limitation of around 20 friends in a friends list ? > Some sort of clever way of doing a multiple async query ? > there are dedicated async methods https://developers.google.com/appengine/docs/python/ndb/async#using https://developers.google.com/appengine/docs/python/ndb/async#tasklets -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
