Yes, there is a difference. When using massive options (always), you only need to enter the database once and perform the operation in batches of records, after which you will return to the application. With individual inserts, you will need to go to the database, paste, and then return to the application, and you will repeat this process for each individual insert operation that you specify to the database. Thus, individual inserts are very slow compared to mass operations. This is similar to grocery shopping, if you have everything you need to buy, you can buy them in one trip (bulk insert), but if for each item you need to drive to the store to get it, and then drive through home, then return to the store to buy another product, then it is not very effective (for example, individual inserts)
Note. Although when interacting with MongoDB using a shell, you only need to deal with one insert function for bulk and individual insertions, you must distinguish between insertOne() and insertMany() operations when using the MongoDB driver APIs. And you should never call insertOne() inside the loop (reason: see my product shopping analogy above).
Dummy Jan 31 '16 at 9:22 2016-01-31 09:22
source share