Search code examples
pythongoogle-app-enginegoogle-cloud-datastoregae-quotas

What does Datastore quotas mean exactly?


I'm a bit confused about what the Datastore quotas mean. https://cloud.google.com/appengine/docs/quotas#Datastore

Let's take for example the Read quota. If I have 1,000,000 entities of a model, and say I have a task that processes each of those entities by batches of 1000 (either via fetch or fetch_page), how much of the quota will the task end up using? 1000 or 1,000,000?


Solution

  • From the documentation:

    Performing operations in batches does not affect the cost, regardless of the entity's size. A batch operation for two keys costs two reads, even if one of the keys did not exist.