Internal Website Search

1-10 of 31 resultsRefresh

setMaxResults(maxResult)

javax.persistence">TypedQuery<X> setMaxResults(  int maxResult)

setMaxResults(maxResult)

.persistence">Query setMaxResults(  int maxResult)

Setting and Tuning of JPA Queries

> Result Range (setFirstResult, setMaxResults) The setMaxResults_int">setMaxResults methods enable defining a result window that exposes ... should be skipped and ignored. The setMaxResults_int">setMaxResults

ObjectDB Object Database Features

/query/setting#result_range_setfirstresult_setmaxresults">range settings (first, max) - for paging

LIMIT or TOP functions

_setfirstresult_setmaxresults">query result range by using the setMaxResults_int">setMaxResults methods. You can find more details and an example in the setmaxresults

JPA and handling large data sets

is read step by step during the export with the  query/setFirstResult() & setMaxResults ... >, setMaxResults) for this purpose is indeed inefficient, because some query ... > and using setMaxResults may be fine. If not check if you can retrieve

Listing large number of complicated objects with paging.

= icQuery.setFirstResult(start).setMaxResults(count).getResultList(); is quite slow ... (setMaxResults). Does that number affect? You may try running ... ;  query.setFirstResult(20).setMaxResults(10).getResultList();      

javax.persistence.TypedQuery

> if setMaxResults was not applied to the query object ... /setMaxResults_int" title="Method of javax.persistence.Query">setMaxResults (int maxResult ... ">TypedQuery<X> setMaxResults_int

javax.persistence.Query

> if setMaxResults was not applied to the query object. setMaxResults_int" title="Method of javax.persistence.Query">setMaxResults

getMaxResults()

.MAX_VALUE if setMaxResults was not applied to the query object