ReferenceProperty

0 views
Skip to first unread message

Parag Dhanuka

unread,
Jun 9, 2008, 8:06:31 AM6/9/08
to google-a...@googlegroups.com
HI I have some datastructure like this:


A(db.Model):
type : db.StringProperty()
b: db.ReferenceProperty(B)
c: db.ReferenceProperty(C)


NOw I do now want to do any queries on object of type B and C.... they are there just for keeping my code clean.... the problem is to do this I have to put B first then get a reference to it and then put A which is an unneccesary DB operation for me..... Is there some way in which I can accomplish this or I ll always have to put B first into the db first.... Besides what happens if I do something like A.b.c = blah and then put A will the value of b change in the data A......

--
Parag Dhanuka
Reply all
Reply to author
Forward
0 new messages