Antonio Coschignano
Antonio Coschignano

Reputation: 336

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?

Upvotes: 2

Views: 163

Answers (1)

Andrei Volgin
Andrei Volgin

Reputation: 41089

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).

Upvotes: 1

Related Questions