使用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.