From 5d4b55af89ea2608f61cf172c49903c52ee17738 Mon Sep 17 00:00:00 2001 From: xian_sc Date: Fri, 31 Mar 2023 16:45:26 +0800 Subject: [PATCH] =?UTF-8?q?update:=E8=A1=A5=E5=85=85adbpgwriter=E7=BB=84?= =?UTF-8?q?=E4=BB=B6doc,column=E5=8F=82=E6=95=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adbpgwriter/src/main/doc/adbpgwriter.md | 3 ++- .../plugin/writer/adbpgwriter/copy/Adb4pgClientProxy.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/adbpgwriter/src/main/doc/adbpgwriter.md b/adbpgwriter/src/main/doc/adbpgwriter.md index 6d3857bc..c03447d4 100644 --- a/adbpgwriter/src/main/doc/adbpgwriter.md +++ b/adbpgwriter/src/main/doc/adbpgwriter.md @@ -149,6 +149,7 @@ COPY命令将数据写入ADB PG数据库中。 注意:1、我们强烈不推荐你这样配置,因为当你目的表字段个数、类型等有改动时,你的任务可能运行不正确或者失败 2、此处 column 不能配置任何常量值 + 3、大写字段名,此处配置时,不需要拼接转义符号:\" * 必选:是
@@ -229,4 +230,4 @@ create table schematest.test_datax ( #### 4.2.2 性能测试小结 1. `channel数对性能影响很大` -2. `通常不建议写入数据库时,通道个数 > 32` \ No newline at end of file +2. `通常不建议写入数据库时,通道个数 > 32` diff --git a/adbpgwriter/src/main/java/com/alibaba/datax/plugin/writer/adbpgwriter/copy/Adb4pgClientProxy.java b/adbpgwriter/src/main/java/com/alibaba/datax/plugin/writer/adbpgwriter/copy/Adb4pgClientProxy.java index 49986076..d09f4e2b 100644 --- a/adbpgwriter/src/main/java/com/alibaba/datax/plugin/writer/adbpgwriter/copy/Adb4pgClientProxy.java +++ b/adbpgwriter/src/main/java/com/alibaba/datax/plugin/writer/adbpgwriter/copy/Adb4pgClientProxy.java @@ -56,7 +56,7 @@ public class Adb4pgClientProxy implements AdbProxy { int retryIntervalTime = configuration.getInt(Key.RETRY_INTERVAL_TIME, 1000); databaseConfig.setRetryIntervalTime(retryIntervalTime); - // 设置自动提交的SQL长度(单位Byte),默认为32KB,一般不建议设置 + // 设置自动提交的SQL长度(单位Byte),默认为10MB,一般不建议设置 int commitSize = configuration.getInt("commitSize", 10 * 1024 * 1024); databaseConfig.setCommitSize(commitSize);