See http://code.google.com/p/googleappengine/issues/detail?id=1084,
especially the May 12 comment.

On Sep 22, 2:48 am, "Nick Johnson (Google)" <[email protected]>
wrote:
> Hi Neves,
> Entities are stored in Protocol Buffer format, which is detailed 
> here:http://code.google.com/apis/protocolbuffers/docs/encoding.html
>
> You can get the encoded Protocol Buffer for an entity by calling
> db.entity_to_proto(x).Encode(), which will return a binary string - the
> length of this is the size of it in the datastore. Unfortunately, there's
> not currently any way to reliably measure index size, or total overhead.
>
> -Nick Johnson
>
>
>
>
>
> On Fri, Sep 18, 2009 at 6:17 AM, Neves <[email protected]> wrote:
>
> > How can I calculate how much data my model will use?
> > for example, a long field is 8 bytes long?
> > A key field hash is always a 40 bytes length?
> > What about indexes?
>
> > Supose I have a model like this, with no special index:
> > class Space(db.Model):
> >  x = db.IntegerProperty()
> >  y = db.IntegerProperty()
> >  z = db.IntegerProperty()
>
> > 1000 records like this would have:
>
> > 1000 * (3*8) * 40 = 960,000 bytes
>
> > What about the index size?
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to