@@ -35,11 +35,46 @@ To learn how to modify the sink records your connector receives before your
3535connector writes them to MongoDB, read the guide on
3636:ref:`Sink Connector Post Processors <sink-fundamentals-post-processors>`.
3737
38- To learn more about bulk writes, see the MongoDB Java driver guide on
39- `Bulk Writes <{+connector_driver_url_base+}fundamentals/crud/write-operations/bulk/>`__.
40-
4138To see a write model strategy implementation, see the source code of the
42- :github:`InsertOneDefaultStrategy class <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/writemodel/strategy/InsertOneDefaultStrategy.java>`.
39+ :github:`InsertOneDefaultStrategy class
40+ <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/writemodel/strategy/InsertOneDefaultStrategy.java>`.
41+
42+ .. _sink-connector-bulk-write-ops:
43+
44+ Bulk Write Operations
45+ ---------------------
46+
47+ The sink connector writes data to MongoDB using bulk write operations.
48+ Bulk writes group multiple write operations, such as inserts,
49+ updates, or deletes, together.
50+
51+ By default, the sink connector performs ordered bulk writes, which
52+ guarantee the order of data changes. In an ordered bulk write, if any
53+ write operation results in an error, the connector skips the remaining
54+ writes in that batch.
55+
56+ If you don't need to guarantee the order of data changes, you can
57+ set the ``bulk.write.ordered`` setting to ``false`` so that the
58+ connector performs unordered bulk writes. The sink connector performs
59+ unordered bulk writes in parallel, which can improve performance.
60+
61+ In addition, when you enable unordered bulk writes and set the
62+ ``errors.tolerance`` setting to ``all``, even if any write
63+ operation in your bulk write fails, the connector continues to
64+ perform the remaining write operations in the batch that do not return
65+ errors.
66+
67+ .. tip::
68+
69+ To learn more about the ``bulk.write.ordered`` setting, see the
70+ :ref:`Connector Message Processing Properties
71+ <sink-configuration-message-processing>`.
72+
73+ To learn more about bulk write operations, see the following
74+ documentation:
75+
76+ - :manual:`Server manual entry on ordered and unordered bulk operations </reference/method/Bulk/#ordered-and-unordered-bulk-operations>`.
77+ - `Bulk write operations in Java <{+connector_driver_url_base+}fundamentals/crud/write-operations/bulk/#order-of-execution>`__
4378
4479How to Specify Write Model Strategies
4580-------------------------------------
0 commit comments