Hey Faried,

To access Datastore on Flexible Environment apps, you should use the gcloud 
library <https://googlecloudplatform.github.io/gcloud-python/> for python.

In both NDB and gcloud, you can use a Datastore entity key to get an 
entity. As described in the documentation linked in my prior comment, 
getting an entity by its Key is a strongly-consistent operation, as opposed 
to normal queries which are eventually-consistent.

I hope this helps. Feel free to come back with any further questions you 
might have!

Cheers,

Nick
Cloud Platform Community Support

On Thursday, June 9, 2016 at 3:42:39 AM UTC-4, Faried Nawaz wrote:
>
> On Thursday, June 9, 2016 at 12:36:09 AM UTC+5, Christian F. Howes wrote:
>>
>> Does your node service use NDB or DB?  if it is using NDB then NDB takes 
>> care of flushing the cache for you when you update an object, but you have 
>> to `get_by_key` in order to get the latest copy.
>>
>
> NDB is a Python API, and I believe it only works on the App Engine, not 
> even with Python services on flexible environments (they're deployed on 
> GCE).
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/63b7e610-4198-4447-979e-30ba9973ce7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to