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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
I found that the COUNT query was the killer. Once I removed it, my small op usage went way down.