如何在名称空间之间复制数据存储实体 [英] How to copy datastore entities between namespaces

查看:102
本文介绍了如何在名称空间之间复制数据存储实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将所有数据复制到一个命名空间,比如www.mysite.com,复制到另一个命名空间,比如nightly.latest.mysite.appspot.com。这样做的最好方法是什么?

I want to copy all the data in one namespace, say www.mysite.com, to another namespace, say nightly.latest.mysite.appspot.com. What's the best way to do this?

示例命名空间不是随机的:它们是NamespaceFilter为为应用提供服务的给定域设置的命名空间。

The example namespaces are not random: they're the namespaces that are set by a NamespaceFilter for the given domains that serve the app.

我希望能够将所有'生产'数据拉入'非生产'命名空间进行测试。

I want to be able to pull all the 'production' data into a 'non-production' namespace for testing.

推荐答案

不幸的是,目前没有自动化的方式来做到这一点。

Unfortunately there is currently no automated way to do this.

你将不得不循环所有您的数据并重新保存到新的名称空间。你可以阅读有关Java和命名空间,在多租户 docs。

You are going to have to loop over all of your data and re-save it to the new namespace. You can read about Java and namespaces, in the multitenancy docs.

这篇关于如何在名称空间之间复制数据存储实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆