-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 6.0.1
-
Component/s: None
-
ALL
-
-
QO 2022-10-17
I was populating an empty (dropped) collection with semi-random data. Creating 10k records in Rust and using insert_many took 748ms. Using $densify and $out to create similar records took 565ms. Using $merge instead of $out took 91,983ms. It seems that $merge should at least be faster than insert_many.
I recall that setting the _id field in the pipeline prior to $merge improved performance, but I can no longer reproduce this.