ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zsolt" <zkoppanyl...@intland.com>
Subject RE: paginated list
Date Fri, 04 Nov 2005 07:22:29 GMT
The MySql driver loads everything into the memory (unless you use LIMIT),
thus if paginated list just skips records it seems to be use less. Its
functionality can be replaced with List.subList(int fromIndex, int toIndex).

My log just show java.sql.ResultSet returned by ibatis, and that contains
only a page. Are you sure that paginated list just skips records? In this
case we have to replace it because we work also on huge lists and cannot
load a couple of 100,000 records into memory to display for example 20.


>-----Original Message-----
>From: Niels Beekman [mailto:n.beekman@wis.nl]
>Sent: Thursday, November 03, 2005 4:07 PM
>To: user-java@ibatis.apache.org
>Subject: RE: paginated list
>It doesn't, it just skips results in the ResultSet I believe. If you
>want to get optimal performance, roll your own implementation of paging
>and use the LIMIT/OFFSET statements, however, it won't be
>-----Original Message-----
>From: Eugeny N Dzhurinsky [mailto:eugenydzh@jdevelop.com]
>Sent: donderdag 3 november 2005 16:04
>To: user-java@ibatis.apache.org
>Subject: paginated list
>Can somebody please explain how this work? I need to show results from
>table, i'm using limit/offset statements in SQL query, but I saw iBATIS
>handle pages in result set somehow, so I might not be forced to add
>limit/offset statements in the SQL clauses. But I'm wandering how does
>handles various databases (in postgresql statement must ends with limit
>offset M whicle in MySQL syntax is limit N,M).
>Eugene N Dzhurinsky

View raw message