We have simple app on gae that broadcasts each entity to a few hundred
users.
We had some scaling issues and now we are trying yo use "Relation
index entities" approach that was described in a talk by Brett Slatkin
(http://www.youtube.com/watch?v=AgaL6NGpkB8).

His sample:

indexes = db.GqlQuery("SELECT __key__ FROM MessageIndex WHERE
receivers = :1", me)
keys = [k.parent() for k in indexes]
messages = db.get(keys)

I was wondering why was he using k.parent() and not k.parent_key()?
Isn't k.parent() actually loading the entity from the datastore? Or is
the parent entity entity already loaded? But then we don't need to run
'messages = db.get(keys)' right?

Am I missing something?

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