Skip to content

Commit

Permalink
Improve MySQL INSERT performance
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo authored and findepi committed May 17, 2022
1 parent 2d532b2 commit 5246420
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public static Properties getConnectionProperties(MySqlConfig mySqlConfig)
connectionProperties.setProperty("useUnicode", "true");
connectionProperties.setProperty("characterEncoding", "utf8");
connectionProperties.setProperty("tinyInt1isBit", "false");
connectionProperties.setProperty("rewriteBatchedStatements", "true");
if (mySqlConfig.isAutoReconnect()) {
connectionProperties.setProperty("autoReconnect", String.valueOf(mySqlConfig.isAutoReconnect()));
connectionProperties.setProperty("maxReconnects", String.valueOf(mySqlConfig.getMaxReconnects()));
Expand Down

0 comments on commit 5246420

Please sign in to comment.