mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Db添加FetchSize的全局设置(pr#3978@Github)
This commit is contained in:
@@ -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,7 +254,9 @@ 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);
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user