• 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
ERXFetchSpecificationBatchIterator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERXFetchSpecificationBatchIterator


  • Subject: ERXFetchSpecificationBatchIterator
  • From: Ron X <email@hidden>
  • Date: Wed, 21 Mar 2012 10:29:12 +0300

hi everybody!
i have real trouble with ERXFetchSpecificationBatchIterator

            EOQualifier qualifier = ERXQ.and(clazz.availabilityQuialifier, qualifierForLetter(letter));
            EOFetchSpecification fs = new EOFetchSpecification(Artist.ENTITY_NAME, qualifier, Artist.NAME.ascs());
            if (pagination != null)    {
                ERXFetchSpecificationBatchIterator batchSpec = new ERXFetchSpecificationBatchIterator(fs);
                batchSpec.setBatchSize(10);
                NSArray<Artist> array = batchSpec.batchWithIndex(new Integer(pagination));
...
and than - i have statement running too long exception!
i see that this batch DO NOT do LIMIT at the end of query!
so i have 10 elements in array, but the request to DB (MySQL) is incredible!

how can i fix this - to set the real LIMIT at the end of query?
 _______________________________________________
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

  • Follow-Ups:
    • Re: ERXFetchSpecificationBatchIterator
      • From: Johann Werner <email@hidden>
  • Prev by Date: Re: Wonder's Rewrite URLs
  • Next by Date: Re: ERXFetchSpecificationBatchIterator
  • Previous by thread: Re: NavigationController Problem: ERModernD2W
  • Next by thread: Re: ERXFetchSpecificationBatchIterator
  • Index(es):
    • Date
    • Thread