Hi,

I just wanted to share my findings on the protobuf overhead for lists.
While it's a common advice to use short property names I'd say most
of the time it makes marginal difference, *except* when using lists.

>>> e = Entity('X')
>>> e['long_property_name'] = range(100)
>>> len(e.ToPb().Encode())
2827

Protobuf prefixes each list value with the property name.
So keep you're listproperty names short!

I don't know much about protocol buffers. Can someone argue whether
it's
possible to change list encoding to something more space efficient?
Or maybe the db.Model abstraction could rename attributes for us?


This became a problem for me with the
google.ext.search.SearchableModel,
the default _FULL_TEXT_INDEX_PROPERTY = '__searchable_text_index'
generated 80% metadata overhead in my case.

Regards,
Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to