what is best way to paging big Resultset -Java

前端 未结 6 662
伪装坚强ぢ
伪装坚强ぢ 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:37

    If you are using JPA (which works quite well on GAE), you can paginate a result set using

    Query#setFirstResult(int startPosition)

    Query#setMaxResults(int maxResult)

    This article might be helpful: Paging large data sets with a LazyList

提交回复
热议问题