google-cloud-datastore

Search a string beginning with a prefix in Google App Engine Datastore

丶灬走出姿态 提交于 2019-12-01 19:37:39
I want to search all entities whose name starts with a specific string, is this possible in Datastore? I've tried this: q = datastore.NewQuery("Places").Filter("Name > ", "a") But it doesn't work. If this is not possible, what alternative solution can you suggest to me? BigQuery? BigTable or other services on App Engine? This is something that is possible, but with a combination of 2 inequality filters. Let's say you want to list Places that have the "li" prefix. This can be described with a query that lists Places that are greater than (or equal to) "li" and less than a prefix that is the

Not authorized to use Google Cloud Datastore for this project

こ雲淡風輕ζ 提交于 2019-12-01 19:30:43
As of today I'm unable to Query my own Datastore from the new App Engine Admin console. I'm stopped by an Datastore Error "You are not authorized to use Google Cloud Datastore for this project." I'm the owner of the project and I've tried on other "owner" accounts but I get the same error. It was working fine last week. I had the same problem (reported and fixed) few months ago, I guess it came back with the last admin console update last week. It is not a decent workaround but if you really need to perform a query before they fixe the issue you can: open the datastore query page remove the

Using Google Cloud Datastore with NDB API?

跟風遠走 提交于 2019-12-01 19:15:51
There is a lot of info on using NDB API with Google App Engine Datastore but I can't find any info on how to use NDB with Google Cloud Datastore. The only module I found is googledatastore which is very primitive library. How is App Engine Datastore different from the Cloud Datastore? Is NDB available for the Cloud Datastore? Alfred Fuller NDB support outside of App Engine (using Google Cloud Datastore) is currently in development. UPDATE: Check out the NDB development discussion on GitHub. You might want to try using gcloud.datastore ( pip install gcloud ). Docs: http://googlecloudplatform

Google Datastore cross region replication

家住魔仙堡 提交于 2019-12-01 19:12:23
问题 We have a app that is hosted in US and the EU. For great performance we will host a datastore instance on both locations. Now is our question how we can replicate the data from the US datastore to the EU datastore? Or is it no matter where we store the data from technical view? 回答1: There is not such thing as multi-location GAE apps (at least not yet). The app's unique location can be selected when the app is created and cannot be changed. See App Engine - How to create project in region us

Why Email, Username, PostalCode, etc as entities in GAE Datastore

陌路散爱 提交于 2019-12-01 19:08:35
I have seen the in GAE datastore there are so many entity which at the end are Strings, at least apparently. List of GAE Java Datastore Entities I'd like to know the underneath reason for that? indexing? semantic search? Richard Watson I had the same question a couple years ago. Nick answered it here . The Java classes provide parity with Python, and in Python it's useful for the special .to_xml() behaviour. It's possible that when GAE gets proper GEO queries the GeoPt might become useful but otherwise you can ignore them. It's quite clear to me -- the question is what were we (Google App

Search 10 nearest Locations in Datastore

馋奶兔 提交于 2019-12-01 18:55:49
I have a lot of Entities containing geoPoints stored in Google's Datastore. Now I need to get the 10 nearest locations based on a Location sent to a Google Cloud Function. I saw, that there is a distance() function in Google's App Engine, but nothing comparable in Google Cloud Functions, not even the possible to calculate anything in the Database. Is it possible to get the 10 nearest Locations from Datastore only using Google Cloud Functions or do I need to use a different Database for that ? Best Regards, Pascal We run a geospatial-heavy service on AppEngine. Our solution is to store the

How can I export data from Google App Engine High Replication datastore?

不羁岁月 提交于 2019-12-01 18:33:13
问题 I am looking into using Google App Engine for a project and would like make sure I have a way to export all my data if I ever decide to leave GAE (or GAE shuts down). Everything I search about exporting data from GAE points to https://developers.google.com/appengine/docs/python/tools/uploadingdata. However, that page contains this note: Note: This document applies to apps that use the master/slave datastore. If your app uses the High Replication datastore, it is possible to copy data from the

Connecting to AppEngine datastore in development via Cloud Datastore API

大憨熊 提交于 2019-12-01 18:31:14
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 so that we can use an API instead of issuing direct HTTP calls. However we are definitely willing to

Search 10 nearest Locations in Datastore

余生长醉 提交于 2019-12-01 18:05:50
问题 I have a lot of Entities containing geoPoints stored in Google's Datastore. Now I need to get the 10 nearest locations based on a Location sent to a Google Cloud Function. I saw, that there is a distance() function in Google's App Engine, but nothing comparable in Google Cloud Functions, not even the possible to calculate anything in the Database. Is it possible to get the 10 nearest Locations from Datastore only using Google Cloud Functions or do I need to use a different Database for that ?

Nested structs on GAE datastore using Go

自闭症网瘾萝莉.ら 提交于 2019-12-01 17:59:28
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 silly so I'm hoping there is a better solution for this. There are two entity types or structs: POST and