google-cloud-datastore

what is the best filter to query a full name datastore property using only the first name?

拜拜、爱过 提交于 2019-12-31 04:51:07
问题 I have this datastore model: class Person(db.Model): person_name = db.StringProperty(required = True) nacionality = db.StringProperty(required = True) marital_status = db.StringProperty(required = True) profession = db.StringProperty(required = True) SSN = db.IntegerProperty(required = True) driver_license = db.IntegerProperty(required = True) address = db.PostalAddressProperty(required = True) In this Model, person_name could be something like this: 'Carl Sagan' (there is only on property

New Google Cloud Firestore in Datastore mode Queries Clarification

天大地大妈咪最大 提交于 2019-12-31 04:44:06
问题 I'm having a difficult time grasping how queries really work on transactions with the new Google Firestore Datastore mode( I already worked with the previous version of Datastore). According to the documentation these are the benefits of using the Google Cloud Direbase in Datastore mode: Eventual consistency, all Cloud Datastore queries become strongly consistent. Transactions are no longer limited to 25 entity groups. Writes to an entity group are no longer limited to 1 per second. Since the

Understanding “CancellationException: Task was cancelled” error while doing a Google Datastore query

僤鯓⒐⒋嵵緔 提交于 2019-12-31 04:43:33
问题 I'm using Google App Engine v. 1.9.48. During some of my data store queries, I am randomly getting "CancellationException: Task was cancelled" error. And I'm not really sure what exactly is causing this error. From other Stackoverflow posts, I vaguely understand that this has to do with timeouts, but not entirely sure what is causing this. I'm not using any TaskQueues - if that helps. Below is the stack trace: java.util.concurrent.CancellationException: Task was cancelled. at com.google

Can't execute a distinct projection query

谁说我不能喝 提交于 2019-12-31 04:11:14
问题 I have a simple little "Observation" class: from google.appengine.ext import ndb class Observation(ndb.Model): remote_id = ndb.StringProperty() dimension_id = ndb.IntegerProperty() metric = ndb.StringProperty() timestamp_observed = ndb.StringProperty() timestamp_received = ndb.DateTimeProperty(auto_now_add=True) @classmethod def query_book(cls): return cls.query() I can run projection queries against the Datastore to return only certain columns. E.g: observations = Observation.query().fetch

Can't execute a distinct projection query

主宰稳场 提交于 2019-12-31 04:11:05
问题 I have a simple little "Observation" class: from google.appengine.ext import ndb class Observation(ndb.Model): remote_id = ndb.StringProperty() dimension_id = ndb.IntegerProperty() metric = ndb.StringProperty() timestamp_observed = ndb.StringProperty() timestamp_received = ndb.DateTimeProperty(auto_now_add=True) @classmethod def query_book(cls): return cls.query() I can run projection queries against the Datastore to return only certain columns. E.g: observations = Observation.query().fetch

Communication with Datastore and cloud Storage from google Compute engine in Java

牧云@^-^@ 提交于 2019-12-31 02:14:13
问题 I've GAE application which creates some data in the Google Cloud Datastore and stores some binary files into the Google Cloud Storage - let's call the application WebApp . Now I have a different application running on the Google Cloud Storage Google compute engine. Let's call the application ComputeApp . Now, the ComputeApp should connect to the Datastore, query for entities created by the WebApp and read related binary file from the Google Cloud Storage. Then the CoumputeApp does some

Communication with Datastore and cloud Storage from google Compute engine in Java

十年热恋 提交于 2019-12-31 02:14:05
问题 I've GAE application which creates some data in the Google Cloud Datastore and stores some binary files into the Google Cloud Storage - let's call the application WebApp . Now I have a different application running on the Google Cloud Storage Google compute engine. Let's call the application ComputeApp . Now, the ComputeApp should connect to the Datastore, query for entities created by the WebApp and read related binary file from the Google Cloud Storage. Then the CoumputeApp does some

is it possible to share a datastore between multiple GAE applications

纵饮孤独 提交于 2019-12-31 01:57:05
问题 I like to work with data saved in one GAE application in other GAE applications. Basically share the datastore between multiple web applications in Google App Engine (Python) Development and Production. Also if possible with: http://localhost:####/_ah/admin/datastore I like to view data in other applications not runnings and/or running on one screen? Thanks for the help! 回答1: Nope, datastores are totally contained within the application. There is no direct sharing of data from one app to

Connecting to AppEngine datastore in development via Cloud Datastore API

陌路散爱 提交于 2019-12-31 00:00:51
问题 We are currently running a combined AppEngine / GCE app and thus far have kept all of our datastore access on the AppEngine side of things. Now we are exploring also allowing our GCE instance to make some queries into the (shared) datastore. To start, I'm trying to figure out how to run things locally. What we have so far: A Go devappserver running A Go standalone binary that wants to issues queries to the devappserver datastore. We installed ('go get') google-api-go-client/datastore/v1beta2

Nested structs on GAE datastore using Go

∥☆過路亽.° 提交于 2019-12-30 18:44:19
问题 I'm trying to figure out how to get nested structs to work with GAE datastore using Go. I know the datastore doesn't specifically support nested structs. I need to find a simple way of getting user information to go with a post when it is sent out to a user as JSON. One thing I thought of was to put two fields for the user. One for the ID/key referencing to user and another one for the user type struct which would be added there when the post is loaded from the datastore. Extra fields seem