How to set parent for datastrore entity during bul

2019-09-18 07:03发布

问题:

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.