开发者

how to mongoimport import by parts (big file)

开发者 https://www.devze.com 2023-02-15 20:57 出处:网络
How to import big file using mongoimport by parts if开发者_运维技巧 I import the file all at once, in the middle of 50% of completion, mongodb will crash because the server will run out of memory (2G

How to import big file using mongoimport by parts

if开发者_运维技巧 I import the file all at once, in the middle of 50% of completion, mongodb will crash because the server will run out of memory (2GB of RAM)

Thank You


You cannot import more than 2gb of data to 32-bit server (it does not depend on the file size). Upgrade to 64-bit.


You cannot import a jsonArray file which is more than 16MB in size (it does not depend on the architechture!)

Source: http://docs.mongodb.org/manual/reference/program/mongoimport/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号