Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mymeiyi committed Nov 2, 2023
1 parent a116942 commit 7c3eef8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ private static void groupCommitInsert() throws Exception {

private static void groupCommitInsertBatch() throws Exception {
Class.forName(JDBC_DRIVER);
// rewriteBatchedStatements=true
// rewriteBatchedStatements=true and cachePrepStmts=true
try (Connection conn = DriverManager.getConnection(
String.format(URL_PATTERN + "&rewriteBatchedStatements=true", HOST, PORT, DB), USER, PASSWD)) {
String.format(URL_PATTERN + "&rewriteBatchedStatements=true&cachePrepStmts=true", HOST, PORT, DB), USER, PASSWD)) {
// enable session variable 'enable_insert_group_commit'
try (Statement statement = conn.createStatement()) {
statement.execute("SET enable_insert_group_commit = true;");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ private static void groupCommitInsert() throws Exception {

private static void groupCommitInsertBatch() throws Exception {
Class.forName(JDBC_DRIVER);
// rewriteBatchedStatements=true
// rewriteBatchedStatements=true and cachePrepStmts=true
try (Connection conn = DriverManager.getConnection(
String.format(URL_PATTERN + "&rewriteBatchedStatements=true", HOST, PORT, DB), USER, PASSWD)) {
String.format(URL_PATTERN + "&rewriteBatchedStatements=true&cachePrepStmts=true", HOST, PORT, DB), USER, PASSWD)) {
// enable session variable 'enable_insert_group_commit'
try (Statement statement = conn.createStatement()) {
statement.execute("SET enable_insert_group_commit = true;");
Expand Down

0 comments on commit 7c3eef8

Please sign in to comment.