English 中文(简体)
将数据库从本地数据存储移动到另一个本地数据存储
原标题:Move database from local datastore to another local datastore

I 和我朋友正在研究一个GWT- Google App引擎项目,使用Tortoise SVN 和 Google 代码同步代码。 我们还同步了 Appengine 生成文件夹中的本地_ db.bin 文件。 但我们无法工作 。 在同步 db 文件后, 我们的本地数据存储处没有按我们预期更新 。 这是一个麻烦。 当我们的数据库变大、变复杂时, 我担心我们的未来, @ A@ 。 请给我一个建议 。 我该怎么做来同步本地数据存储处?

最佳回答

I have to suggestions: 1) Use remote api : https://developers.google.com/appengine/articles/remote_api to share a GAE hosted db locally. 2) Maybe you can use Gdrive to sync folders.

问题回答

这是一个非常糟糕的主意。即使你没有困难从同一个数据存储器文件中读取两个结果,本地数据存储器还是以二进制格式,因此您无法同时在应用程序上工作,否则您将无法解决合并冲突。

相反,为了合作目的,也为了测试和部署,您应该提供一套可以轻松装入数据存储处的测试数据。将测试数据储存在版本控制中,并用散装装入器或你自己的代码装载。





相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...