Within SQL, the LIMIT and
OFFSET clauses to a given query are used as a
paging mechanism. For example, you might use:
SELECT recipeid,title FROM recipes LIMIT 100
To get the first 100 rows from the database, and then use the
OFFSET to get the subsequent groups of
records:
SELECT recipeid,title FROM recipes LIMIT 100 OFFSET 100
With Couchbase Server, the limit and
skip parameters when supplied to the query
provide the same basic functionality:
?limit=100&skip=100Performance for high values of skip can be affected. See Section 9.8.3, “Pagination” for some further examples of paging strategies.