Jacob Jona Fahlenkamp created FLINK-37950:
---------------------------------------------

             Summary: MongoDB connector should support ordered option
                 Key: FLINK-37950
                 URL: https://issues.apache.org/jira/browse/FLINK-37950
             Project: Flink
          Issue Type: Improvement
          Components: Connectors / MongoDB
    Affects Versions: 1.20.1
            Reporter: Jacob Jona Fahlenkamp


The MongoDB connector is slower than expected. We using MongoDB API directly, 
we typically use the ordered(false) optionĀ  to improve bulk write performance: 
[https://www.mongodb.com/docs/drivers/java/sync/current/crud/bulk/#unordered-execution]

The mongodb connector currently doesn't expose this option. It calls bulkWrite 
without specifying BulkWriteOptions (default options) here: 
[https://github.com/apache/flink-connector-mongodb/blob/main/flink-connector-mongodb/src/main/java/org/apache/flink/connector/mongodb/sink/writer/MongoWriter.java#L216]

The default setting is ordered, where mongodb is forced to perform the bulk 
operations in sequence.

It would be great if there was a connector option to set this mongodb option.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to