开发者

What is the size my different datastore entities?

I wanted to view the size of my datastore entities OR be able to estimate them some how? (I cant see where memory size info is on Appstats Console or the Development Console?)

My problem is that I want to know the byte size of 2 types of entities:

Entity A

  • The key_name is 20 characters. (ie. {AAAA}{BBBB}{CCCC} ).
  • Only one TextProperty of 1 character (ie. "0" ).

Entity B

  • Same as above. The key_name is 20 characters. (ie '{AAAA}{BBBB}{CCCC} ).
  • Only one TextProperty of 65536开发者_如何学JAVA characters long.

Any help on finding current entity sizes AND/OR estimating entity sizes is appreciated. THANKS.


len(db.model_to_protobuf(entity).Encode())


Have you looked at the "Datastore Statistics" page in the Admin Console of your app? It tells you all kinds of things about your entities, though they are estimates/averages, not exact numbers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜