what is best way to paging big Resultset -Java

前端 未结 6 624
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 06:44

i am looking for best aproach from perfomance point of view , to show Resultset on webpage partially , lets say by 10 item per page and if user want to see more result, he p

6条回答
  •  遥遥无期
    2021-01-19 07:39

    you can cache/retrieve the records in web layer, backend layer(for example ejb) or the database layer(as last "limit" or row_id statement). which approach you should use depends on your requirement(as said by kdgregory).

    most popular one is to cache them at the web layer using the session.

提交回复
热议问题