Re: ERXFetchSpecificationBatchIterator how ???
Re: ERXFetchSpecificationBatchIterator how ???
- Subject: Re: ERXFetchSpecificationBatchIterator how ???
- From: WoDev VisionWorx <email@hidden>
- Date: Wed, 16 Mar 2005 13:40:11 -0500
I'm sorry about the multiple posts, but I just joined the list yesterday and was not getting even that message back to my subscribed email so I wasn't sure if it had posted. I still have not received back my original post actually. I am very sorry about that. I know now that it has.
Nathan
On Mar 16, 2005, at 9:54 AM, David Teran wrote:
Hi,
1) one message is enough, do you really think sending a mail three times give you a faster reply???
2) this is code from project wonder, please subscribe to the project wonder list and ask the question there
david
Am 15.03.2005 um 23:16 schrieb WoDev VisionWorx:
below is how i tried to use the ERXFetchSpecificationBatchItererator:
can someone please fill me in on how I get the first batch of objects ???
if a sample code method could be provided just to illustrate exactly how to use this ?
public NSArray getFirstBatch() {
EOEditingContext dEC = this.session().defaultEditingContext();
NSArray bindings = new NSArray (new Object[] {"L"});
EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat("deptcode like %@" , bindings);
EOFetchSpecification fetchItems = new EOFetchSpecification("Linnew", qualifier, null);
fetchItems.setFetchLimit(12);
ERXFetchSpecificationBatchIterator erxbi = new ERXFetchSpecificationBatchIterator(fetchItems, dEC, 40);
reportItems = dEC.objectsWithFetchSpecification(fetchItems);
return erxbi.nextBatch();
}
This does not work....nor can i even get the fetch limiting on the fetch spec to work ?? i'm searching on a 782,600 record database and of course would only like to show maybe 100 per page. But I only need to have say 100 EO's in memory at a time to not create Out Of Memory errors... please help ??
thx,
Nathan
_______________________________________________
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
_______________________________________________
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