How to set parent for datastrore entity during bulkloading data by appcfg.py on Google App Engine?

天涯浪子 提交于 2019-12-11 15:01:42

问题


I'm trying to bulkload data using appcfg.py as described here. I got it working except setting parent entity, I can't seem to find info on how to set a parent entity for entity being created by the import. Can you point me to the right direction or provide a code snippet for my bulkloader.Loader implementation?


回答1:


You need to override the generate_key method of your Loader class. See this post for details.



来源:https://stackoverflow.com/questions/2356158/how-to-set-parent-for-datastrore-entity-during-bulkloading-data-by-appcfg-py-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!