Antonio Coschignano Antonio Coschignano - 7 months ago 34
Java Question

Google App Engine Java small operation

I'm planning a backend with Google App Engine application for Android. I would like some clarification as regards to Small operation. I did not understand if, for example:

Key key = ...
Entity entity = datastore.get(key)

Is this considered a small operation? And if it is not a small operation, can you give me an example of small operations in java?


From the documentation:

Small datastore operations include calls to allocate datastore ids or keys-only queries, and these operations are free.

So, get operation is a regular read, not a small operation. Here is an example of a small operation:

Query q = new Query("Photo").setKeysOnly();

When you run this query, it will result a bunch of small operations (depending on how many entities it finds).