1
我的做法:出口火力點數據作爲JSON並插入使用進口火力產生的JSON數據集的MongoDB
mongoimport --db firebase --collection examples --file examples.json --jsonArray
我使用--jsonArray Linux上的MongoDB因爲沒有它在Linux上顯示錯誤mongodb supplied JSON is too large
但是另一回事。
將數據插入到MongoDB的我的數據看起來像 my data after importing to mongo 所以我所試圖做的是要導入的數據,讓MongoDB中的_id是我的火力兒童 的關鍵,我想實現這一目標使用默認後工具,而不是像使用Java解析數據,然後將它們插入到mongodb工作周圍