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

susanlin8 2012-01-13 11:31:48
系统内存不足。请对大型 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>
如何解决,望各位高手指点!最好能举个例子
...全文
295 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
商科程序员 2012-01-13
  • 打赏
  • 举报
回复
分页吧.

25,980

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧