Amichay,
It depend from database - postgresql and mysql have limit clause and hibernate use it, but
with oracle hibernate create ugly query with rownum, sort it and return requested rows (MaxRows form fistRows).
Limit clause in postgersql and my sql exist beacuse this databases load all rows in memory and You have to make bound - Oracle load never all rows in memory (maybe table with a few rows) and for this query it is enough that read rows which you want.It is cursor
Postgresql introduce cursor in last versions, but it isn't default behavior
regards
|