What kind of actions belong to Small Datastore Operations?

105 views
Skip to first unread message

zhaiduo

unread,
Nov 8, 2011, 4:52:40 AM11/8/11
to Google App Engine
Hi All,

My little app became over quota on Small Datastore Operations
recently. What the most confused me is what kind of actions belong to
Small Datastore Operations? I can't figure it out. Can anyone give me
the detail for this?

Appreciate your help!

Simon Knott

unread,
Nov 8, 2011, 5:01:07 AM11/8/11
to google-a...@googlegroups.com
Hi,

Someone asked this just earlier today - https://groups.google.com/d/msg/google-appengine/csrZsowdUmY/CACgb4jWCqUJ

Cheers,
Simon

Gerald Tan

unread,
Nov 8, 2011, 6:16:19 AM11/8/11
to google-a...@googlegroups.com
Most of the time, it's COUNT queries that is causing over-quota for small ops. It costs 1 small op per entity counted. You should use a counter entity instead, sharding it if necessary.
The rest of the time it's using OFFSET + LIMIT queries. Each offset value costs 1 small small op. You should use cursors instead

cb

unread,
Nov 26, 2011, 10:57:56 PM11/26/11
to Google App Engine
I found that the COUNT query was the killer. Once I removed it, my
small op usage went way down.
Reply all
Reply to author
Forward
0 new messages