Re: Using Fetch Limits with MySQL
Re: Using Fetch Limits with MySQL
- Subject: Re: Using Fetch Limits with MySQL
- From: Paul D Yu <email@hidden>
- Date: Fri, 25 Feb 2011 20:11:00 -0500
Yes, ERBatchingDisplayGroup is to help you with pagination of large data sets in and out of the database.
Paul
Here;s a sample
public BoiseBatchingDisplayGroup<Observation> observationDG() {
if (observationDG == null) {
EODatabaseDataSource ds = new EODatabaseDataSource(pageEditingContext(), Observation.ENTITY_NAME);
observationDG = new BoiseBatchingDisplayGroup<Observation>();
observationDG.setDataSource(ds);
observationDG.setFetchesOnLoad(true);
observationDG.setNumberOfObjectsPerBatch(20);
... Qualifiers here...
observationDG.setSortOrderings(Observation.DATE_LAST_MODIFIED.descs());
observationDG.qualifyDisplayGroup();
}
return observationDG;
On Feb 25, 2011, at 8:07 PM, Johnny Miller wrote:
> Hi Paul,
>
> No. Right now I'm just using the vanilla WO stuff like EOFetchSpecification and EOUtilities.
>
> Should I take a look at ERBathingDisplayGroup?
>
> Thanks again,
>
>
>
>
> On Feb 25, 2011, at 3:02 PM, Paul D Yu wrote:
>
>> ERBatchingDisplayGroup
>
> Johnny Miller
> Kahalawai Media Corp
> http://www.kahalawai.com
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden