简体   繁体   English

Google Cloud Datastore与Google App Engine

[英]Google Cloud Datastore vs Google App Engine

I was having a look at the new Google Cloud Datastore and looks great. 我正在查看新的Google Cloud Datastore,看起来很棒。 But there is something I could not understand... is it supposed to substitute Google App Engine Datastore? 但有一些我无法理解的......它应该替代Google App Engine数据存储区吗? How can I use it inside GAE? 如何在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... 我在Java中有一个GAE应用程序,它使用3个实体,每个实体有数千行,我需要经常加入...

The cloud datastore is the App Engine datastore, for use outside App Engine. 云数据存储区 App Engine数据存储区,可 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. 尝试将其与App Engine应用程序一起使用时,您将无法获得任何好处,除非您需要其他外部应用程序才能访问数据。

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. 如果你真的需要它,也许你应该研究一下Cloud SQL,它基本上是你可以在App Engine中使用的MySQL版本。

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 . 它们都是相同的,事实上Google App Engine可以使用Google Cloud DataStore作为其存储数据的方式之一,其他选项包括Google Cloud SQLGoogle 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. 从您的问题可以清楚地看出,Google Cloud SQL是正确的选择,因为没有其他选项提供用于检索结果的连接。

Cloud SQL is nothing but MySQL (the popular open source database) running on google platform. Cloud SQL只不过是在谷歌平台上运行的MySQL (流行的开源数据库)。 So you can perform your regular SQL-like queries to get your results. 因此,您可以执行常规的类SQL查询以获得结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM