As Nick said on his blog:
http://blog.notdot.net/2010/01/ReferenceProperty-prefetching-in-App-Engine#comment-533928983
 
"""
The SDK was modified a while ago to send one request per entity group in 
production. The requests are sent asynchronously, and the new method is 
actually faster than sending them all in one batch request.

The quota usage is the same regardless - you use one read operation per 
entity you read.
"""


On Saturday, May 19, 2012 12:44:55 PM UTC-7, Chris Davis wrote:
>
> This can be demonstrated with this trivial example, on Production 6 
> RPC's are generated, on Local, only 2 
>
> class Person(db.Model): 
>         firstname = db.StringProperty(required=True) 
>
> class Names(db.Model): 
>         userKeys = db.ListProperty(db.Key) 
>
> a = Person(firstname="adam") 
> b = Person(firstname="bob") 
> c = Person(firstname="charles") 
> d = Person(firstname="derick") 
> e = Person(firstname="edward") 
>
> people = [a,b,c,d,e] 
>
> db.put(people) 
>
> peopleKeys = [a.key(),b.key(),c.key(),d.key(),e.key()] 
>
> n = Names() 
> n.userKeys = peopleKeys 
>
> items = db.get(n.userKeys) 
>

-- 
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/-/dZ4YZ9zn5qUJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to