当前位置:网站首页>jdbc读大量数据导致内存溢出
jdbc读大量数据导致内存溢出
2022-07-05 17:58:00 【shy_snow】
jdbc查询大量数据到内存时会导致内存溢出,需要设置结果集只读并分批次获取数据
Statement stmt = this.connect.createStatement(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY);
stmt.setFetchSize(Integer.MIN_VALUE);
边栏推荐
- 小林coding的内存管理章节
- Neural network self cognition model
- 图像分类,看我就够啦!
- ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
- Cmake tutorial Step4 (installation and testing)
- Teamcenter 消息注册前操作或後操作
- Teamcenter 消息注册前操作或后操作
- Leetcode notes: Weekly contest 300
- Electron安装问题
- 第十一届中国云计算标准和应用大会 | 华云数据成为全国信标委云计算标准工作组云迁移专题组副组长单位副组长单位
猜你喜欢

华夏基金:基金行业数字化转型实践成果分享

Sophon CE社区版上线,免费Get轻量易用、高效智能的数据分析工具

Record a case of using WinDbg to analyze memory "leakage"

Cmake tutorial Step2 (add Library)

寻找第k小元素 前k小元素 select_k

Binder开辟线程数过多导致主线程ANR异常

Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!

Configure pytorch environment in Anaconda - win10 system (small white packet meeting)

Daily exercise: a series of dates

IDC report: Tencent cloud database ranks top 2 in the relational database market!
随机推荐
How to solve the error "press any to exit" when deploying multiple easycvr on one server?
删除数组中的某几个元素
星环科技重磅推出数据要素流通平台Transwarp Navier,助力企业实现隐私保护下的数据安全流通与协作
OpenShift常用管理命令杂记
EPM related
Introduction to Resampling
matlab内建函数怎么不同颜色,matlab分段函数不同颜色绘图
爱因斯坦求和einsum
数值计算方法 Chapter8. 常微分方程的数值解
模拟百囚徒问题
[paddlepaddle] paddedetection face recognition custom data set
Data access - entityframework integration
[TestLink] testlink1.9.18 solutions to common problems
消除`if()else{ }`写法
Memory management chapter of Kobayashi coding
Penetrate the whole intranet through socks agent
钉钉开放平台小程序API的缓存接口都有哪些内容?
Sophon kg upgrade 3.1: break down barriers between data and liberate enterprise productivity
Eliminate the writing of 'if () else{}'
The easycvr platform reports an error "ID cannot be empty" through the interface editing channel. What is the reason?