Skip to content
joelwatson edited this page May 19, 2015 · 1 revision

Using CriteriaBuilder, you can limit the size of the result set via the DSL:

cb.limit({max}, {offset});

cb.limit(10, 5);

Example

var cb = new CriteriaBuilder.Builder({
    store: mystore
});
// select 10 rows, starting at 5
cb.limit(10, 5);
// run
cb.query();
Clone this wiki locally