[google-appengine] Re: How to get ReferenceProperty's key without causing a 'get'

2008-10-03 Thread Mahmoud
Awesome. Thanks dude. On Oct 2, 6:40 pm, Rafe <[EMAIL PROTECTED]> wrote: >   Folks, > >   There have been a number of people asking on the forums what the > correct way to get the key of a ReferenceProperty without causing a > whole 'get' to the datastore.  This can be especially inefficient if >

[google-appengine] Re: How to get ReferenceProperty's key without causing a 'get'

2008-10-02 Thread yejun
Then you can use parent_key() method to access key directly. On Oct 2, 7:40 pm, yejun <[EMAIL PROTECTED]> wrote: > I think you shouldn't define a post field in comment at all. Simply > make post as parent of comment when storing data. > > On Oct 2, 6:40 pm, Rafe <[EMAIL PROTECTED]> wrote: > > >  

[google-appengine] Re: How to get ReferenceProperty's key without causing a 'get'

2008-10-02 Thread yejun
I think you shouldn't define a post field in comment at all. Simply make post as parent of comment when storing data. On Oct 2, 6:40 pm, Rafe <[EMAIL PROTECTED]> wrote: >   Folks, > >   There have been a number of people asking on the forums what the > correct way to get the key of a ReferencePro