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)