当前位置: 动力学知识库 > 问答 > 编程问答 >

Google Cloud Datastore vs Google App Engine

问题描述:

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...

网友答案:

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.

网友答案:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: