Re: SOLVED Prefetch Problem (Prefetching)
Re: SOLVED Prefetch Problem (Prefetching)
- Subject: Re: SOLVED Prefetch Problem (Prefetching)
- From: "B. Shank" <email@hidden>
- Date: Fri, 28 Feb 2003 23:58:51 -0800
The Google search at developer.apple.com for
setInstancesRetainRegisteredObjects returns the relevant documentation
you need, so you may find that search feature useful for future
challenges.
Brent
On Friday, February 28, 2003, at 01:10 PM, email@hidden wrote:
I have experienced problems using WO 5.2 since we move from 4.5.1 using
" Prefetch " in fetchSpecifications. I do not know if it is a bug or
whatever
but is causing degradation on the app performance, the behavior is
strange
and unpredictible. In my "research" I found that the SQL rounds were
done
correctly but the objects were not registered in the EditingContext, so
the app try to fetch each object one by one (or one by n if
toManyRelationship
were present -non tested-).
I found many posts in the OmniGroup and WODeveloper sites that has the
same
kind of problem.
After a toil of debug, I found a method in EOEditingContext class,
instancesRetainRegisteredObjects
that return "false". I turned on in my Application constructor using...
EOEditingContext.setInstancesRetainRegisteredObjects(true);
...and the problem/bug vanish. It is not exhaustive tested because we
are
in upgrade stage but it seems work fine.
Please do not ask me what "setInstancesRetainRegisteredObjects" really
affect
because the WO documenatation does not mention anything.(Thanks Apple
for
doing our develop work harder. We enjoy looking for your bugs, your non
documented & changed behaviors, and your non documented methods, etc.)
I hope the code line above help you.
Victor Trevino
M.C.Vmctor M. Treviqo Alvarado
ITESM.MX
+(52)(81)89892500
Ext: 2504
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.