I tried to import around 15.4 GB of Tweet data, which was in JSON format, into MongoDB 4.0 on Windows (8 GB Memory) and it imported successfully. Below is the command for the import.
C:\>mongoimport –host localhost –port 27017 –collection TwitterHealthColl –db HealthDB –file “C:/tmp/HTA_noduplicates.json”
or
mongoimport /db:HealthDB /collection:TwitterHealthColl /file:”D:/DOWNLOADS/HTA_noduplicates.json”
2019-06-21T13:02:03.940+0530 [#######################.] HealthDB.TwitterHealthColl 14.8GB/15.4GB (96.2%)
2019-06-21T13:02:06.940+0530 [#######################.] HealthDB.TwitterHealthColl 14.9GB/15.4GB (96.9%)
2019-06-21T13:02:09.941+0530 [#######################.] HealthDB.TwitterHealthColl 15.0GB/15.4GB (97.4%)
2019-06-21T13:02:12.940+0530 [#######################.] HealthDB.TwitterHealthColl 15.0GB/15.4GB (97.4%)
2019-06-21T13:02:15.940+0530 [#######################.] HealthDB.TwitterHealthColl 15.1GB/15.4GB (98.0%)
2019-06-21T13:02:18.940+0530 [#######################.] HealthDB.TwitterHealthColl 15.2GB/15.4GB (98.7%)
2019-06-21T13:02:21.940+0530 [#######################.] HealthDB.TwitterHealthColl 15.3GB/15.4GB (99.4%)
2019-06-21T13:02:24.498+0530 [########################] HealthDB.TwitterHealthColl 15.4GB/15.4GB (100.0%)
2019-06-21T13:02:24.498+0530 imported 3783557 documents






