Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-113

Writemodel upsert strategy which can target multiple fields

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: None
    • Component/s: Sink
    • None

      Hello again,

      We recently upgraded our sharded mongodb cluster to 4.2.0+ and encountered an issue where we wanted upserts but the mongodb connector creates upserts which only match on the _id field and our sharded collections have compound shard keys.

      I created a writemodel strategy which creates upserts that can be configured to target multiple fields, hopefully it can be of use. As before I have included tests,

      https://github.com/mongodb/mongo-kafka/pull/16

      Thanks!

      -Pat

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            patwakeem@gmail.com Pat W
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: