@Franck_Pachot1 Thanks for the reply.
-
What if the write query is more complex and dynamic, involving $map, $mergeObjects, and $switch?
-
Also, what if the write query replaces an entire embedded document with another document?
Is MongoDB also able to detect when the indexed values have not changed and skip those writes?