简体   繁体   English

将数据从JSON加载到Google Cloud Datastore

[英]Loading data from JSON into Google Cloud Datastore

I have recently pulled multiple JSON files from a SQL database and I would like to load them into my Google Datastore. 我最近从SQL数据库中提取了多个JSON文件,我想将它们加载到我的Google数据存储区中。 Can anyone suggest the best way to go about this. 任何人都可以建议最好的方法来解决这个问题。 I have read the docs and they detail how to create entities but I cannot determine how to do a bulk data load. 我已经阅读了文档,他们详细介绍了如何创建实体,但我无法确定如何进行批量数据加载。 Any tips or tricks would be welcome. 任何提示或技巧都会受到欢迎。

Two years later and no answer! 两年后,没有答案! The key to doing this right now, in 2017, seems to be the new Dataflow thing in Google Cloud. 现在,2017年实现这一目标的关键似乎是Google Cloud中的新数据流 There are SDKs for both Java and Python, but it's still so new I'm using the Java SDK, the 1.9 version . 有Java和Python的SDK,但它仍然是新的我使用的是Java SDK,即1.9版本 I've adapted two of the examples and have it putting data into the Datastore. 我已经调整了两个示例,并将数据放入数据存储区。 It seems to play nice with namespaces so far, but it's a little difficult to make fields with parent/child relationships. 到目前为止,它似乎与命名空间一样好用,但是创建具有父/子关系的字段有点困难。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM