chelder
chelder

Reputation: 3987

What is the meaning of max and offset pagination params in createcriteria?

In the Grails documentation, we read:

def results = Book.list(max: 10, offset: 100)

Also, from this MySQL tutorial, we read: the offset specifies the offset of the first row to return.

Questions:

Upvotes: 2

Views: 4111

Answers (1)

dmahapatro
dmahapatro

Reputation: 50265

Hello GORM, when you return me a list of Books give me only 10 (max) results but do not start from the Zeroth (offset = 0) place, instead start listing results from 100th (offset) result.

Upvotes: 4

Related Questions