diff --git a/docs/en/docs/data-operate/import/import-way/group-commit-manual.md b/docs/en/docs/data-operate/import/import-way/group-commit-manual.md index 1abad21f6126aa8..b84288dc16e0453 100644 --- a/docs/en/docs/data-operate/import/import-way/group-commit-manual.md +++ b/docs/en/docs/data-operate/import/import-way/group-commit-manual.md @@ -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;"); diff --git a/docs/zh-CN/docs/data-operate/import/import-way/group-commit-manual.md b/docs/zh-CN/docs/data-operate/import/import-way/group-commit-manual.md index 48c194dcbf414a0..bc1afbeec513cb9 100644 --- a/docs/zh-CN/docs/data-operate/import/import-way/group-commit-manual.md +++ b/docs/zh-CN/docs/data-operate/import/import-way/group-commit-manual.md @@ -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;");