7287efc616b253083d435cba78e619783dff20d6
gaussdb-guide.md
... | ... | @@ -65,8 +65,7 @@ Maven 依赖配置: |
65 | 65 | |
66 | 66 | ```yaml |
67 | 67 | ######## DBCP ########## |
68 | - |
|
69 | -######## GaussDB iiot ######## |
|
68 | +######## GaussDB######## |
|
70 | 69 | driverClassName=com.huawei.gaussdb.jdbc.Driver |
71 | 70 | url=jdbc:gaussdb://ip:8000,ip:8000,ip:8000/tpcc?currentSchema=snest_changwen&autoBalance=true&refreshCNIpListTime=3&prepareThreshold=1&batchMode=on&fetchsize=10&loggerLevel=OFF |
72 | 71 | username=*** |
... | ... | @@ -75,18 +74,19 @@ validationQuery=SELECT 1 |
75 | 74 | gaussdbDeployment=Distributed |
76 | 75 | |
77 | 76 | initialSize=5 |
78 | -maxActive=30 |
|
77 | +maxActive=2000 |
|
79 | 78 | minIdle=5 |
80 | -maxWait=6000 |
|
81 | 79 | filters=stat |
80 | +maxWait=6000 |
|
82 | 81 | timeBetweenEvictionRunsMillis=60000 |
83 | -minEvictableIdleTimeMillis=300000 |
|
82 | +minEvictableIdleTimeMillis=1800000 |
|
84 | 83 | testOnBorrow=false |
85 | 84 | testOnReturn=false |
86 | 85 | testWhileIdle=true |
87 | 86 | poolPreparedStatements: true |
88 | 87 | maxOpenPreparedStatements: 20 |
89 | 88 | connectionProperties:druid.stat.sql.MaxSize=100; |
89 | +keepAlive=true |
|
90 | 90 | |
91 | 91 | ######## OceanBase ######## |
92 | 92 | # driverClassName=com.mysql.cj.jdbc.Driver |
... | ... | @@ -116,6 +116,7 @@ connectionProperties:druid.stat.sql.MaxSize=100; |
116 | 116 | ### 3.1 dbcp.properties 示例 |
117 | 117 | |
118 | 118 | ```properties |
119 | + |
|
119 | 120 | ######## DBCP ########## |
120 | 121 | initialSize=5 |
121 | 122 | maxActive=2000 |
... | ... | @@ -141,6 +142,7 @@ validationQuery=SELECT 1 |
141 | 142 | gaussdbDeployment=Distributed |
142 | 143 | ``` |
143 | 144 | |
145 | + |
|
144 | 146 | ### 3.2 Spring 配置文件适配 |
145 | 147 | |
146 | 148 | 在 `application-dev.properties` 文件中添加以下参数,以适配 GaussDB 自定义 SQL 列字段别名转换: |