in my Google Cloud Datastore, using App Engine, I have approximately 1000 entities of type A
.
I need to pre-load the whole list of entities, constantly updating, every time a user logs in. I can't do it static.
Taking advantage of Google Cloud Datastore pricing model (https://cloud.google.com/datastore/pricing) I changed the query code from:
a_entities = A.query().fetch()
to:
a_keys = A.query().fetch(keys_only=True)
a_entities = ndb.get_multi(a_keys)
So that I remain in the daily free quota, since I move much of the read operations to the type "Datastore Small Operations", which are free and unlimited, as I read.
Is this a sound solution? Would it be able to sustain a certain traffic in case it increases much? Would it impact other resources?
Thank you