简体   繁体   English

在不同版本中使用GAE数据存储

[英]Using GAE datastore in different versions

I'm using GAE as my app back-end. 我正在使用GAE作为我的应用程序后端。 For production environment I use the a the 2nd version. 对于生产环境,我使用第二版。 while continue developing on the 1st version. 同时继续开发第一个版本。

The problem is that both versions use the same datastore. 问题在于两个版本都使用相同的数据存储。 Is there a way to define versions to the datastore. 有没有一种方法可以定义数据存储区的版本。 So, entities used in the development won't even be queried in production? 那么,用于开发的实体甚至不会在生产中被查询?

Thanks, Dan 谢谢,丹

All versions of an application share the same datastore. 应用程序的所有版本共享同一数据存储。 This is actually very useful because it lets you upload a Go component and a Python component as separate versions that access the same datastore. 这实际上非常有用,因为它使您可以将Go组件和Python组件上载为访问同一数据存储区的单独版本。

For the purposes of testing, if you want a separate database, use a separate app id. 为了进行测试,如果要使用单独的数据库,请使用单独的应用程序ID。

使用名称空间https://developers.google.com/appengine/docs/java/multitenancy/multitenancy它将包括memcached等在内的所有内容分隔开。

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

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