Yes, ndb cache only Key operations.

See on "Operations on Multiple Keys or Entities":

https://cloud.google.com/appengine/docs/python/ndb/entities

Regards,
Renzo Nuccitelli

On Tuesday, November 25, 2014 3:09:51 AM UTC-2, John Louis Del Rosario 
wrote:
>
> Thanks. That clarifies things. 
>
> I'm using NDB, which I believe automatically caches entities.
> Does NDB's caching only work for Key operations (e.g. .get(), 
> .get_multi())?
> And queries need to be cached manually?
>
> On Tuesday, November 25, 2014 3:12:17 AM UTC+8, Chad Vincent wrote:
>>
>> 1,000,000, as you are reading 1,000,000 entities.
>>
>> If you do not cache the entities (Session Cache or Memcache), and load 
>> the page again, that is another 1,000,000 read operations.
>>
>> On Friday, November 21, 2014 6:17:25 AM UTC-6, John Louis Del Rosario 
>> wrote:
>>>
>>> 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 operations quota. If I have ~1,000,000 
>>> entities, and have a task that fetches all of them (say 1000 per page, 
>>> using fetch_page or fetch). 
>>> Does that count as 1,000,000 Read operations? Or 1000?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to