mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
Db添加FetchSize的全局设置(pr#3978@Github)
This commit is contained in:
parent
a10181dab2
commit
2493b8da8b
@ -10,6 +10,7 @@
|
|||||||
* 【core 】 优化XXXToMapCopier的部分性能(pr#1345@Gitee)
|
* 【core 】 优化XXXToMapCopier的部分性能(pr#1345@Gitee)
|
||||||
* 【http 】 `HttpConfig`增加参数`setIgnoreContentLength`可选忽略读取响应contentLength头(issue#ICB1B8@Gitee)
|
* 【http 】 `HttpConfig`增加参数`setIgnoreContentLength`可选忽略读取响应contentLength头(issue#ICB1B8@Gitee)
|
||||||
* 【core 】 `Assert`新增断言给定集合为空的方法以及单元测试用例(pr#3952@Github)
|
* 【core 】 `Assert`新增断言给定集合为空的方法以及单元测试用例(pr#3952@Github)
|
||||||
|
* 【db 】 Db添加FetchSize的全局设置(pr#3978@Github)
|
||||||
*
|
*
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复`NumberUtil`isNumber方法以L结尾没有小数点判断问题(issue#3938@Github)
|
* 【core 】 修复`NumberUtil`isNumber方法以L结尾没有小数点判断问题(issue#3938@Github)
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>cn.hutool</groupId>
|
<groupId>cn.hutool</groupId>
|
||||||
<artifactId>hutool-parent</artifactId>
|
<artifactId>hutool-parent</artifactId>
|
||||||
<version>5.8.38</version>
|
<version>5.8.38-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>hutool-db</artifactId>
|
<artifactId>hutool-db</artifactId>
|
||||||
|
@ -254,9 +254,11 @@ public final class DbUtil {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置构造结果集时每次从数据库取到的行数
|
* 设置构造结果集时每次从数据库取到的行数
|
||||||
|
*
|
||||||
* @param fetchSize 每一轮网络请求获取的行数
|
* @param fetchSize 每一轮网络请求获取的行数
|
||||||
|
* @since 5.8.39
|
||||||
*/
|
*/
|
||||||
public static void setStatementFetchSizeGlobal(Integer fetchSize){
|
public static void setStatementFetchSizeGlobal(Integer fetchSize) {
|
||||||
GlobalDbConfig.setStatementFetchSize(fetchSize);
|
GlobalDbConfig.setStatementFetchSize(fetchSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ public class GlobalDbConfig {
|
|||||||
/**
|
/**
|
||||||
* 自定义构造结果集时每次从数据库取的行数
|
* 自定义构造结果集时每次从数据库取的行数
|
||||||
*/
|
*/
|
||||||
protected static Integer statementFetchSize=null;
|
protected static Integer statementFetchSize = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置全局是否在结果中忽略大小写<br>
|
* 设置全局是否在结果中忽略大小写<br>
|
||||||
@ -126,7 +126,9 @@ public class GlobalDbConfig {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置构造结果集时每次从数据库取到的行数
|
* 设置构造结果集时每次从数据库取到的行数
|
||||||
|
*
|
||||||
* @param statementFetchSize 每一轮网络请求获取的行数
|
* @param statementFetchSize 每一轮网络请求获取的行数
|
||||||
|
* @since 5.8.39
|
||||||
*/
|
*/
|
||||||
public static void setStatementFetchSize(Integer statementFetchSize) {
|
public static void setStatementFetchSize(Integer statementFetchSize) {
|
||||||
GlobalDbConfig.statementFetchSize = statementFetchSize;
|
GlobalDbConfig.statementFetchSize = statementFetchSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user