On Sunday, June 24, 2012 5:40:15 AM UTC-7, saintthor wrote:
>
> are there a more ops for the StructuredProperty?


StructuredProperty is essentially just a bunch of properties with funny 
names. The cost depends on how many indexed properties you have in total in 
an entity (including in structured properties). So e.g. these two (Flat and 
Nested) below have the same cost:

class Flat(ndb.Model):
  name = ndb.StringProperty()
  address_line1 = ndb.StringProperty()
  address_line2 = ndb.StringProperty()

and

class Addres(ndb.Model):
  line1 = ndb.StringProperty()
  line2 = ndb.StringProperty()

class Nested(ndb.Model):
  name = ndb.StringProperty()
  address = ndb.StructuredProperty(Address)

-- 
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/-/X0VKumjWFqIJ.
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