I am using iBatis as an ORM framework in Java. I have a select statement
<select id="getList" resultMap="correctMap"> SELECT * FROM SOME_TABLE </select>
And I use the queryForList method:
List<MappedObject> list = getSqlMapClientTemplate().queryForList("getList");
But it retrieves a large amount of data, and the performance of this query is rather slow.
My guess is that iBatis has a default sample size (for example, in JDBS - 10), so it is so slow. So I want to set a larger sample size (e.g. 1000). How can i do this?
Or was I looking for the wrong way?
NOTE. I need all the data, so the maximum results in the queryForList
method queryForList
not suitable for me.
List queryForList(String id, Object parameterObject, int skip, int max)
nkukhar
source share