ibatiS 查询数据量大 出现内存不足

susanlin8 susanlin8 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
系统内存不足。请对大型 ResultSet 使用服务器端游标: Java heap space。ResultSet 大小:21,751,046。JVM 总内存大小:66,650,112。; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
xml 源码
<!DOCTYPE sqlMap
PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">

<sqlMap namespace="schoolstyle">

<typeAlias alias="schoolstyle" type="com.gxedu.resource.schoolstyle.Schoolstyle" />
<!--
===================================================select==========================================
-->
<select id="getSchoolstyleBynews" parameterClass="Schoolstyle" resultClass="Schoolstyle">
select * from informations
<dynamic prepend="where">
<isNotNull prepend="and" property="parts_ids">
parts_ids like '%$parts_ids$%'
</isNotNull>
<isNotNull prepend="and" property="channel_id">
channel_id=#channel_id#
</isNotNull>
<isNotNull prepend="and" property="status">
status=#status#
</isNotNull>
<isNotNull prepend="and" property="is_instant_flash">
is_instant_flash=#is_instant_flash#
</isNotNull>
</dynamic>
</select>

</sqlMap>
如何解决,望各位高手指点!最好能举个例子
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
susanlin8
高性能WEB开发 25,979 成员 4,366 内容