Skip to content

Commit

Permalink
Merge pull request #1430 from dawwin/feature/cursor_test_docs_update
Browse files Browse the repository at this point in the history
Removed unnecessary ordering from cursor tests and updated comments
  • Loading branch information
harawata committed Jan 7, 2019
2 parents 8894484 + d547ab7 commit 3668bfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/apache/ibatis/cursor/Cursor.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
/**
* Cursor contract to handle fetching items lazily using an Iterator.
* Cursors are a perfect fit to handle millions of items queries that would not normally fits in memory.
* Cursor SQL queries must be ordered (resultOrdered="true") using the id columns of the resultMap.
* If you use collections in resultMaps then cursor SQL queries must be ordered (resultOrdered="true")
* using the id columns of the resultMap.
*
* @author Guillaume Darmont / guillaume@dropinocean.com
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

<mapper namespace="org.apache.ibatis.submitted.cursor_simple.Mapper">

<select id="getAllUsers" resultMap="results" resultOrdered="true">
select * from users order by id
<select id="getAllUsers" resultMap="results">
select * from users
</select>

<resultMap type="org.apache.ibatis.submitted.cursor_simple.User" id="results">
Expand Down

0 comments on commit 3668bfa

Please sign in to comment.