应用程序引擎上传更改数据的机制,是上传整个数据还是增量数据?
我通过以下方式将 my_app 上传到 app 引擎应用
:
appcfg.py update c:\my_app ...
如果我已经为 my_app 上传,然后对文件进行了细微更改,
- 是否可以将整个项目上传到
app engine
并覆盖之前的整个项目? - 或者它是否只上传相关更改并覆盖相关部分?
此命令的问题是什么情况:
bulkloader.py --restore --filename=my_kind.dump ...
I upload my_app to app engine app
by:
appcfg.py update c:\my_app ...
If I already uploaded for my_app then done a minor changement in file,
- Does it upload whole project to
app engine
and overwrite whole previous project? - Or does it upload only relevent change and overwrite relevent part?
And what is the case for the issue for this command:
bulkloader.py --restore --filename=my_kind.dump ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你尝试过吗?
update
每次都会上传整个应用程序。没有三角洲的概念。通常,当您上传新版本时,我建议更改version
设置 - 这样您就可以在网站上保留最多 10 个应用程序的先前版本,并且仅将新版本设置为默认版本一旦你确定它正在工作。如果您上传而不更改版本,AppEngine 实际上会在删除旧版本之前创建一个新版本,因此您的版本列表中需要一个备用插槽。
我不明白你关于散装装载机的问题。你是问这是否会产生Delta?不,它不能,因为它通过远程 API 串行发送数据 - 它无法提前知道数据文件中的哪些行已存在于数据存储中。
Did you try it?
update
uploads the whole application each time. There's no concept of a delta. Normally, when you upload a new version I would suggest changing theversion
setting - that way you can keep up to 10 previous versions of your app on the site, and only set the new one to be the default once you are sure it is working.If you upload without changing the version, AppEngine actually creates a new version before deleting the old one, so you need a spare slot in your versions list.
I don't understand your question about the bulkloader. Are you asking if that does a delta? No, it can't, because it sends the data serially via the remote API - there's no way for it to know in advance which rows in your data file already exist in the datastore.