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?
--~--~---------~--~----~------------~-------~--~----~
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