[appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-20 Thread Didier Durand
Hi John, Thanks a lot for the pointer to the article! Can I understand that what the DataStore Viewer shows as Encoded key is what the article refers to as "prefix delta encoding scheme" ? It is supposed to save space by in my cases keys (encoded and decoded) are of approx same size. didier Cou

Re: [appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-20 Thread John Patterson
Yes, the kind name is used in the key along with the id/name and ancestor path and all contribute to the size. Details: http://code.google.com/appengine/articles/storage_breakdown.html On 20 Jul 2010, at 15:41, Didier Durand wrote: @John Patterson, I did not mention the Class / Kind in my an

[appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-20 Thread Didier Durand
@John Patterson, I did not mention the Class / Kind in my answer for the following reason: when I go to "Datastore Viewer" in the GAE Console and for every entity, I see "Decoded key" and "Encoded key" The encoded key is always - at least in my experience - a huge string whatever the size of the d

Re: [appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-19 Thread John Patterson
Also the class name is used in the Key as the kind. To get the shortest keys you would need to use short class names and numeric long ids (rather than Strings). Having small keys is important because they are stored many times per entity in indexes and more than once for the entity itself

[appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-19 Thread Didier Durand
Hi Mark, I would say yes: the datastore viewer shows the data with couples (name,value), name being the origianal attribute name in the java class. Moreover the doc says "Each persistent field of the class represents a property of the entity, with the name of the property equal to the name of the