如何在Google App Engine数据存储中插入批量数据? [英] How to insert bulk data in Google App Engine Datastore?

查看:132
本文介绍了如何在Google App Engine数据存储中插入批量数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些CSV文件供城市,州和国家使用它们的ID,名称等。我想将所有这些数据放入Google应用引擎数据存储区。



有人可以建议在开发服务器和生产服务器上这样做的有效方式吗?



提前致谢。

解决方案

你很幸运。您所描述的功能已被纳入到appcfg.py中:

http://code.google.com/appengine/docs/python/tools/uploadingdata.html


I have some CSV files for cities,state and countries with their ids, names etc. I want to put all this data into Google app engine datastore.

Can someone please suggest an efficient way of doing this on development server as well as on the production server?

Thanks in advance.

解决方案

You're in luck. The functionality you described is baked into appcfg.py:

http://code.google.com/appengine/docs/python/tools/uploadingdata.html

这篇关于如何在Google App Engine数据存储中插入批量数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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