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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]