The solution to the error of mongodb importing large batches of data

使用mongoimport --host **** --db opac --collection requestrecord --type csv --fieldFile d:\header.csv --file d:\requestrecord.csv --numInsertionWorkers 100

 

In order to improve the insertion efficiency of mongodb, we can use the multi-threaded operation recommended by mongodb (numInsertionWorkers). In essence, it is to split the insert task into multiple threads to do it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326019313&siteId=291194637