Hi all!
Recently, I had to remove all entities of a certain type in the datastore. There were ~10 000. I connected via Remote Api and executed the following code:
from model import MyEntityKind
@ndb.toplevel
def delete_all():
for key in MyEntityKind.query().iter(keys_only=True):
key.delete_async()
delete_all()
And I get:
OverQuotaError: The API call datastore_v3.RunQuery() required more quota than is available.
And before to run code, small ops quota was zero.
In the administrative console was specified, that ended quotas datastore small operation. This behavior surprised me, because
documentation specified
Query (keys only) — 1 read + 1 small per key retrieved, and the query had to spend 10 000 key = 1 read + 10 000 small!
Perhaps this is a side effect of using Remote Api or bug!
Thank you for your attention!
P.S. Sorry for my bad english.