google-cloud-datastore

How to model entity relationships in GAEJ?

拈花ヽ惹草 提交于 2019-12-10 04:26:41
问题 I would like to know -an example is highly appreciated- How to model relationships in Google App Engine for Java? -One to Many -Many to Many I searched allover the web and I found nothing about Java all guides and tutorials are about Python. I understood from this article that in Python the relationships are modeled using ReferenceProperty . However, I found nothing about this class in the Javadoc reference. Furthermore, in this article they discussed the following: there's currently a

Inequality Filter in AppEngine Datastore

无人久伴 提交于 2019-12-10 04:19:24
问题 I understand that Google AppEngine supports only one inequality filter per query. What are the workaround on this limitation? Are there any solution that will provide similar effect? 回答1: Actually GAE supports multiple inequality filters as long as they are on the same property. The workarounds to this limitation are data-specific, e.g. it depends how your data is structured and how you want to query it. For example, for geo searching, as @Dan Holevoet mentioned, there are various geo-hashing

GAE development server keep full text search indexes after restart?

不羁岁月 提交于 2019-12-10 03:12:40
问题 Is there anyway of forcing the GAE dev server to keep full text search indexes after restart? I am finding that the index is lost whenever the dev server is restarted. I am already using a static datastore path when I launch the dev server (the --datastore_path option). 回答1: This functionality was added a few releases ago (in either 1.7.1 or 1.7.2, I think). If you're using an SDK from the last few months it should be working. You can try explicitly setting the --search_indexes_path flag on

Appengine ID/Name vs WebSafeKey

旧巷老猫 提交于 2019-12-09 22:34:45
问题 When writing the endpoints in java, for finding items by their keys, should I use the Id or the webSafeString of the key? In what situations does this matter? 回答1: It's up to you. Do the entities have parents? Then you probably want to use the urlsafe representation as a single string will contain the full path to the entity. If you used an ID instead - you would somehow need to manually include the IDs of all parents up to the root. No parents & IDs are numeric / alphanumeric? Then just use

How to query datastore when using ReferenceProperty?

家住魔仙堡 提交于 2019-12-09 20:51:32
问题 I am trying to understand the 1-to-many relationships in datastore; but I fail to understand how query and update the record of a user when the model includes ReferenceProperty . Say I have this model: class User(db.Model): userEmail = db.StringProperty() userScore = db.IntegerProperty(default=0) class Comment(db.Model): user = db.ReferenceProperty(User, collection_name="comments") comment = db.StringProperty() class Venue(db.Model): user = db.ReferenceProperty(User, collection_name="venues")

What can cause high variability of Untraced Time in App Engine requests?

一世执手 提交于 2019-12-09 16:28:46
问题 I just ran a load test against my app. I noticed some very large variability in latency for two identical requests: 3 s vs. 30 s. When I dug into the traces I found the following: | | Traced (ms) | Untraced (ms) | |----------------------+-------------+---------------| | High-latency Request | 193 | 29948 | | Low-latency Request | 305 | 2934 | Here are screen shots for the traces: Low overall latency High overall latency I cannot make sense of a 10-to-1 difference in runtime performance. I

Faster App Engine Development Datastore Alternative

隐身守侯 提交于 2019-12-09 15:39:59
问题 Is there a way to use a real database(SQLite, Mysql, or even some non-relational one) as datastore for development, instead of memory/file datastore that is provided. I saw few projects, GAE-SQLite(did not seem to be working) and one tip about accessing production datastore using remote api (still pretty slow for large datasets). 回答1: MongoDB works great for that. You will need: The MongoDB stub: http://github.com/mongodb/mongo-appengine-connector MongoDB: http://www.mongodb.org/display/DOCS

Connect google Datastore to google Data Studio

不打扰是莪最后的温柔 提交于 2019-12-09 11:47:42
问题 I want to use google's Data Studio tool to make visualizations for the data I have in the Datastore. But it is not available as a source of data on the interface. How can I approach doing this? 回答1: You can write your own Community Connector to fetch data using the Cloud Datastore API. One thing to keep in mind here is that Data Studio only accepts tabular data so you will need to reshape your data using the connector code if necessary. 回答2: Your options are pretty limited. You'll probably

Google Cloud Endpoints with Google Cloud Functions [closed]

谁说我不能喝 提交于 2019-12-09 07:48:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I was not able to find documentation about how to connect GCF with Google Cloud Endpoints. As I understand Google Cloud Endpoints can be configured to access internal cloud resources. It is not clear how to use load balancer with Endpoints service as well. In the Building Scalable Web Apps with Cloud Datastore

getting blobstore to callback to endpoint method

∥☆過路亽.° 提交于 2019-12-09 06:58:35
问题 I am developing an app-engine connected android project using the eclipse plugin. When I upload an image to the blobstore, how do I make it callback an endpoint method? I find great posts here that can be used as reference to understand my question better (if you need to). using blobstore with google cloud endpoint and android Saving blobs with Google Endpoint So really, I want to know how to make the callback url an endpoint method such as saveAnimalData below (I stole from referenced link)