cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Øyvind Harboe <>
Subject Re: paginated queries, setPageSize
Date Tue, 05 Apr 2011 15:23:10 GMT
Hi Felix,

I've implemented paged queries using Cayenne and

As I recall you have to implement a "dataprovider" that
will run the query every time the page is rendered. The
objects that are serialized into the page must be small
(per design).

The dataprovider implements sorted, paged queries.

This worked well for a database with 100k's of records
and where I re-ran the query every time the user typed
a new char into a text field to narrow down the search
(including a back-off algorithm supported by the framework).

Øyvind Harboe

Can Zylin Consulting help on your project?

US toll free 1-866-980-3434 / International +47 51 87 40 27
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer

View raw message