SOLVED Prefetch Problem (Prefetching)
SOLVED Prefetch Problem (Prefetching)
- Subject: SOLVED Prefetch Problem (Prefetching)
- From: email@hidden
- Date: Fri, 28 Feb 2003 15:10:30 -0600
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.