google-cloud-datastore

Efficient way to store relation values in NDB

别说谁变了你拦得住时间么 提交于 2019-12-20 07:34:05
问题 I've this data model (I made it, so if there's a better way to do it, please let me know). Baically I've Club that can have many Courses . now I want to know all the members and instructors of a Club. members and instructors are stored in the Course model, and Club has a reference to them. See the code.. class Course(ndb.Model): ... instructor_keys = ndb.KeyProperty(kind="User", repeated=True) member_keys = ndb.KeyProperty(kind="User", repeated=True) @property def instructors(self): return

Error every time I run datastore.runQuery: one of fields Query.query and Query.gql_query must be set

对着背影说爱祢 提交于 2019-12-20 07:01:13
问题 I'm trying to run a simple query against my Google Cloud datastore using google-api-nodejs-client. I want to query for all entities matching a given kind. When I run this query using the "Try it now" tool it works fine: Request POST https://www.googleapis.com/datastore/v1beta2/datasets/healthier-staging/runQuery?key={YOUR_API_KEY} { "query": { "kinds": [ { "name": "Subscriber" } ] } } Response 200 OK { "batch": { "entityResultType": "FULL", "entityResults": [ { "entity": { "key": {

Error every time I run datastore.runQuery: one of fields Query.query and Query.gql_query must be set

家住魔仙堡 提交于 2019-12-20 07:00:44
问题 I'm trying to run a simple query against my Google Cloud datastore using google-api-nodejs-client. I want to query for all entities matching a given kind. When I run this query using the "Try it now" tool it works fine: Request POST https://www.googleapis.com/datastore/v1beta2/datasets/healthier-staging/runQuery?key={YOUR_API_KEY} { "query": { "kinds": [ { "name": "Subscriber" } ] } } Response 200 OK { "batch": { "entityResultType": "FULL", "entityResults": [ { "entity": { "key": {

How can I create two unique, queriable fields for a GAE Datastore Data Model?

吃可爱长大的小学妹 提交于 2019-12-20 06:39:17
问题 First a little setup. Last week I was having trouble implementing a specific methodology that I had constructed which would allow me to manage two unique fields associated with one db.Model object. Since this isn't possible, I created a parent entity class and a child entity class, each having the key_name assigned one of the unique values. You can find my previous question located here, which includes my sample code and a general explaination of my insertion process. On my original question,

Where can I download offline documentation for google cloud datastore?

半城伤御伤魂 提交于 2019-12-20 06:07:04
问题 Is there a better way to download the google cloud datastore docs for offline viewing than to use a web crawler? I have not found anything yet! Thanks! 回答1: Sorry but we don't currently support this for any of the documentation hosted on developers.google.com. 来源: https://stackoverflow.com/questions/16730698/where-can-i-download-offline-documentation-for-google-cloud-datastore

Where can I download offline documentation for google cloud datastore?

老子叫甜甜 提交于 2019-12-20 06:06:19
问题 Is there a better way to download the google cloud datastore docs for offline viewing than to use a web crawler? I have not found anything yet! Thanks! 回答1: Sorry but we don't currently support this for any of the documentation hosted on developers.google.com. 来源: https://stackoverflow.com/questions/16730698/where-can-i-download-offline-documentation-for-google-cloud-datastore

Objectify query filter by List of keys that have a parent

∥☆過路亽.° 提交于 2019-12-20 05:48:15
问题 I would like to create an Api method via Google App Engine (Objectify) that returns a CollectionResponse of the posts of the people that I am following, sorted by date descending. I have an Entity Post and Entity Profile both of which have Long id as their key. The Post Entity has the following property specifying it has a Parent: @Parent private Key<Profile> profileKey; The Profile Entity has the following property storing a List of id 's of the people the profile is following: // Ids of the

Using google cloud ml with Android app

落花浮王杯 提交于 2019-12-20 04:28:16
问题 I am studying this example on google cloud ml : link. I want to know how I can connect my Android app to this so that I can send in a data value and receive the prediction back to my app after processing it through Tensorflow. I am thinking it has to be some sort of API connection that allows us to do this but I just can't find any documentation or examples that do this. Please help!! 回答1: You're right, the uploaded model is then provided to you as an API and you can make normal http POST

How to connect to the local google cloud Datastore db?

♀尐吖头ヾ 提交于 2019-12-20 03:54: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 compute engine. Let's call the application ComputeApp . The ComputeApp is a backend process which is processing data created by the WebApp . I asked here in this question previously which API can I use to communicate with Datastore from the ComputeApp . As suggested

Go with GAE saved an object to datastore. when getting it back, the object has empty members

荒凉一梦 提交于 2019-12-20 03:52:52
问题 I am trying to learn Go with GAE. I have created 2 handlers. One for saving an object to datastore and the other retrieve it and output to screen. The problem is that when i retrieve the UserAccount object from datastore, every values inside the object are gone. Any help would be appreciate. Output: a/c count: 2 val: core.UserAccount{idString:"", deviceId:""} val: core.UserAccount{idString:"", deviceId:""} type UserAccount struct { idString string deviceId string } func create_account(w http