Involved Compass Version: 1.32.2 on MacOS 12.3
Problem:
I’m testing on bulk insertions via Compass’ embedded mongosh
with sample code as follows:
var bulk = db.mycoll.initializeOrderedBulkOp();
var num = 100000;
for (var i = 0; i < num; i++) { bulk.insert({ name: "Hello", count: i }); }
bulk.execute();
However, it appears to hang during the for loop.
The code works fine when executed in mongo
or mongosh
on host cluster where 100k documents can be inserted in a few seconds. It also works in embedded mongosh
when num
is small.
Steps to Reproduce:
- Connect to database cluster with Compass
- Execute sample code in embedded
mongosh
Expected Results: Prompt returns with a BulkWriteResult after successfully inserting a number of documents
Actual Results: mongosh
hangs indefinitely indicating the current command is still running