10000 Server:新增对MySQL,PostgreSQL等多数据库支持功能的性能优化建议 · coder-caicai/APIJSON@44852d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44852d1

Browse files
committed
Server:新增对MySQL,PostgreSQL等多数据库支持功能的性能优化建议
1 parent 156d20b commit 44852d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/server/DemoSQLExecutor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ public int executeUpdate(@NotNull SQLConfig config) throws Exception {
6868
}
6969

7070

71-
//TODO 根据不同数据库来分组存 connection 和 statement,例如 Map<database, connection>,
72-
// 解决一次请求中有2个以上不同数据库类型导致后面的查询都用第一个的数据库类型
71+
//TODO String 改为 enum Database 解决大小写不一致(MySQL, mysql等)导致创建多余的 Connection
7372
private Map<String, Connection> connectionMap = new HashMap<>();
7473
/**
7574
* @param config

0 commit comments

Comments
 (0)
0