I am using iBatis 2.3.4
I have the following query:
<select id="getUserList" resultMap="userListResult">
SELECT
id,
name,
login,
email
FROM
users
</select>
And when I need to provide paging, I use:
sqlMap.queryForList("base.getUserList", startPosition, numItems);
Then iBatis generates a request without restrictions and skips additional data during the extraction. I believe that working with restrictions is faster.
How can we get iBatis to use LIMIT as a whole? Is it possible? Maybe we can describe some kind of dialect?
source
share