zhilinli123 commented on code in PR #290:
URL: 
https://github.com/apache/doris-flink-connector/pull/290#discussion_r1449734413


##########
flink-doris-connector/src/main/java/org/apache/doris/flink/table/DorisConfigOptions.java:
##########
@@ -291,4 +292,26 @@ public static Properties getStreamLoadProp(Map<String, 
String> tableOptions) {
         }
         return streamLoadProp;
     }
+
+    public static LinkedHashMap<String,String> getJdbcUrlDefaultParameter() {
+        final LinkedHashMap defaultParameter = new 
LinkedHashMap<String,String>();
+        defaultParameter.put("rewriteBatchedStatements", "true");
+        return defaultParameter;

Review Comment:
   
https://dev.mysql.com/doc/connectors/en/connector-j-connp-props-performance-extensions.html
 
   https://vladmihalcea.com/mysql-rewritebatchedstatements/
   default rewriteBatchedStatements=false
   ```
   INSERT INTO table_name (column1, column2) VALUES (value11, value12);
   INSERT INTO table_name (column1, column2) VALUES (value21, value21);
   INSERT INTO table_name (column1, column2) VALUES (value32, value32);
   ```
    rewriteBatchedStatements=true
   ```
   INSERT INTO table_name (column1, column2) VALUES (value11, value12) , 
(value21, value21),(value32, value32);
   ```
   PTAL: @JNSimba 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to