ERXFetchSpecificationBatchIterator
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