WODisplayGroup fetches on load issue
WODisplayGroup fetches on load issue
- Subject: WODisplayGroup fetches on load issue
- From: David Holt <email@hidden>
- Date: Wed, 07 Nov 2007 15:10:22 -0800
Hello all,How do I get a WODisplayGroup's first fetch using "fetch on load" to use a querybinding in the named fetchspec?
I was debugging the SQL generated because the component seemed awfully slow to load and I found out that as my component loads it is actually causing 2 fetches: the first fetches all the Artifacts (a product of the "fetch on load"), then immediately afterwards a second one uses the queryBinding and fetches the subset I want. I put this code in the component's constructor:
Session session = (Session)session(); artifactDisplayGroup.queryBindings().setObjectForKey(session.appPermission,"applicationPermission"); artifactDisplayGroup.qualifyDataSource();
When I turn off "fetches on load" and trigger the first fetch from the component, the response is instantaneous (which is the behaviour I'm looking for :-) )
Thanks, David |
_______________________________________________
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