Google Cloud Datastore vs Google App Engine

2019-03-17 22:25发布

I was having a look at the new Google Cloud Datastore and looks great. But there is something I could not understand... is it supposed to substitute Google App Engine Datastore? How can I use it inside GAE? What are the differences between both of them?

I have a GAE app in Java that uses 3 entities with thousands of rows each one, and I need to do joins quite often...

2条回答
祖国的老花朵
2楼-- · 2019-03-17 22:35

They both are the same, in fact Google App Engine can use Google Cloud DataStore as one of its way to store data, the other options include Google Cloud SQL, Google Cloud Storage. You may select among these three according to the type of data you want to store and the way you want to access them.

From your question its clear that Google Cloud SQL would be right choice as no other options provide joins for retrieving results.

Cloud SQL is nothing but MySQL(the popular open source database) running on google platform. So you can perform your regular SQL-like queries to get your results.

查看更多
何必那么认真
3楼-- · 2019-03-17 22:48

The cloud datastore is the App Engine datastore, for use outside App Engine. You won't get any benefit trying to use it with your App Engine app, unless you need other external apps to also have access to the data.

You certainly won't get more efficient joins. If you really need that, perhaps you should look into Cloud SQL, which is basically a version of MySQL you can use from App Engine.

查看更多
登录 后发表回答