The answer depends on whether you have accessed the B instance through
bla (or wrote an instance into it).

Aor example, right after "a = A.get(key)", pickling a will not pickle
the B referenced by a.bla.

Moreover, after you do "a.bla = {B instance}.key()", pickling a will
not pickle the B referenced by bla.

However, after you do "a.bla = {B instance}", pickling a will pickle
the B referenced by bla.

And, after you do "None == a.bla" or reference "a.bla.b_field",
pickling a will pickle the B referenced by bla.




On Nov 11, 4:22 am, gops <[EMAIL PROTECTED]> wrote:
> suppoe i have one model
>
> ie.
>
> class A(db.model):
>    bla = db.ReferenceProperty(B)
>
> and i pickle.dump it , will it also store/return the whole data of B
> or just the key ?
>
> i.e. if I latter pickle.loads it , will I have a full B ( so that
> there won't any datastore query happen) ? or just the key and whenever
> i access it it need to fetch it ?
--~--~---------~--~----~------------~-------~--~----~
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