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.

I know that both Twig and Objectify have support for defining your own kind names without needing to actually rename your class to something incomprehensible.

On 20 Jul 2010, at 11:11, Didier Durand wrote:

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 field (with case preserved)." at
http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Class_and_Field_Annotations

regards
didier

On Jul 19, 3:32 pm, Mark <[email protected]> wrote:
Hi,

I read in a post that the length of member variable names contributes
to the amount of storage space your app uses, example:

    class Farm {
        private String mFarmersFavoriteCropToPlant;
    }

would take more space to store than:

    class Farm {
        private String m;
    }

might not matter for a handful of instances, but if I have thousands
of records... is this true?

Thanks

--
You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-java?hl=en .


--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" 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-java?hl=en.

Reply via email to