Hi Blake, Field names are stored with every instance of the entity, so there is some performance impact. For standard properties, it's not likely to be measurable, but for a list property, it can be significant - if your list contains a thousand items, it will serialize the name a thousand times. As Geoffrey points out, though, the storage impact is more likely to be significant than the performance impact.
If you want to use shorter names, you don't have to do this at the expense of readability in your code; simply supply the 'name' argument to the property constructor to specify a field name that's different to the property name you use to refer to it in your code. -Nick Johnson On Thu, Jun 17, 2010 at 9:33 PM, Blake <[email protected]> wrote: > I'm curious as to whether field name lengths impact performance when > you have a high volume of writes on a very simple object type to the > datastore. > > I know it's not the case for relational dbs, but for the datastore I'm > not certain how field names are stored/maintained for every object of > a particular type as those fields can vary amongst those objects. > > As an example, if I have a small model, all ints like this: > > class Example(db.Model): > some_id = db.IntegerProperty() > first_integer = db.IntegerProperty() > second_integer = db.IntegerProperty() > > Is there any performance impact (even a tiny one) when doing very > frequent writes when compared to something like this: > > class Example(db.Model): > s = db.IntegerProperty() > i = db.IntegerProperty() > j = db.IntegerProperty() > > -- > 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]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- 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.
