Hi Ritesh,
  There is really nothing to prefetch in this case.  Author.posts is
actually a query object (that is added to the model at run time).

  Depending on your needs there are two good solutions, 1) put the
author data you need on Post so you only query Post objects, or 2)
store a list of Post keys / ids on Author so that you can do a bulk
pre-fetch.



Robert








On Wed, Feb 9, 2011 at 13:51, Ritesh Nadhani <rite...@gmail.com> wrote:
> So I have been using and following the prefetching method as mentioned
> at http://blog.notdot.net/2010/01/ReferenceProperty-prefetching-in-App-Engine
>
> But I could not get it to work for collection property. I have created
> a paste that shows the issues: http://bpaste.net/show/13546/
>
> So is it even possible or am I doing something wrong and I should
> restructure my design?
>
> --
> Ritesh
> http://www.beamto.us
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
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