• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Fetch Limits with MySQL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Using Fetch Limits with MySQL (From: Johnny Miller <email@hidden>)
 >Re: Using Fetch Limits with MySQL (From: Paul D Yu <email@hidden>)
 >Re: Using Fetch Limits with MySQL (From: Johnny Miller <email@hidden>)

  • Prev by Date: Re: Using Fetch Limits with MySQL
  • Next by Date: Re: Using Fetch Limits with MySQL
  • Previous by thread: Re: Using Fetch Limits with MySQL
  • Next by thread: Re: Using Fetch Limits with MySQL
  • Index(es):
    • Date
    • Thread