Treat output as insert instead of merge during initialSync

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Atlas Streams
    • Fully Compatible
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      During the initialSync collection copy phase, all the output is going to be inserts. For Merge sinks, we can add an optimization where during this phase only, we use the `collection::insert_many` method to insert these docs. The result of this method indicates on a per document basis whether the insert was successful or not. If some inserts failed, then for these failed inserts, we will create a batch of all the failed inserts and then fall back to the default merge code for this batch.

      If we are not in collection copy phase, we will simply fall back to the default merge code.

              Assignee:
              Nathan Frank
              Reporter:
              Mayuresh Kulkarni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: