[ https://issues.apache.org/jira/browse/FLINK-37950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacob Jona Fahlenkamp updated FLINK-37950: ------------------------------------------ Description: The MongoDB connector is slower than expected. When 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 - hence using 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(true), 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. was: The MongoDB connector is slower than expected. When 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 - hence using 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. > 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 > Priority: Major > > The MongoDB connector is slower than expected. When 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 - hence using 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(true), 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)