当前位置:网站首页>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);
边栏推荐
- Maximum artificial island [how to make all nodes of a connected component record the total number of nodes? + number the connected component]
- Unicode processing in response of flash interface
- 删除数组中的某几个元素
- Cmake tutorial step1 (basic starting point)
- mybash
- 星环科技重磅推出数据要素流通平台Transwarp Navier,助力企业实现隐私保护下的数据安全流通与协作
- Login and connect CDB and PDB
- 含重复元素取不重复子集[如何取子集?如何去重?]
- Image classification, just look at me!
- What are the requirements for PMP certification? How much is it?
猜你喜欢

Redis基础
![含重复元素取不重复子集[如何取子集?如何去重?]](/img/b2/d019c3f0b85a6c0d334a092fa6c23c.png)
含重复元素取不重复子集[如何取子集?如何去重?]

Ten top automation and orchestration tools

GFS分布式文件系统

Mask wearing detection based on yolov3

Elk log analysis system

隐私计算助力数据的安全流通与共享

Tencent music launched its new product "quyimai", which provides music commercial copyright authorization

Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection

Image classification, just look at me!
随机推荐
最大人工岛[如何让一个连通分量的所有节点都记录总节点数?+给连通分量编号]
Neural network self cognition model
Leetcode daily practice: rotating arrays
Sentinel flow guard
EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
LeetCode 练习——206. 反转链表
Gimp 2.10 tutorial "suggestions collection"
ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V
Sophon AutoCV:助力AI工业化生产,实现视觉智能感知
Privacy computing helps secure data circulation and sharing
JVM third talk -- JVM performance tuning practice and high-frequency interview question record
Teamcenter 消息注册前操作或后操作
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
小林coding的内存管理章节
破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台
What is the reason why the video cannot be played normally after the easycvr access device turns on the audio?
Nacos distributed transactions Seata * * install JDK on Linux, mysql5.7 start Nacos configure ideal call interface coordination (nanny level detail tutorial)
Delete some elements in the array
Operation before or after Teamcenter message registration
多线程(一) 进程与线程