Re: EOModels occasionally loading too slowly?
Re: EOModels occasionally loading too slowly?
- Subject: Re: EOModels occasionally loading too slowly?
- From: Paul Hoadley <email@hidden>
- Date: Fri, 6 Nov 2009 07:25:38 +1030
On 05/11/2009, at 10:47 PM, Mike Schrag wrote:
You mean you would have thought didFinishLaunching() was better?
Yes.
So the other one actually is the right place, as it turns out ...
The startup process is:
willFinishLanching (which calls wonder's finishInitialization)
finishInitialization
migrationsWillRun
...migrate...
migationsDidRun
create worker threads
didFinishLaunching
So this actually makes sense now why it would be safer to go in
willFinishLaunching. If you use migrations, you should probably put
this code in migrationsDidRun instead, though. I still don't get
why it's a problem now that we have the lock in around the loading
process, but ... whatever. I think this is the right place for his
initialization.
Thanks Mike. It's making a lot more sense to me now. As you say, the
lock code you added didn't seem to fix it for this case. If you want
me to do any specific testing on that, let me know.
--
Paul.
w http://logicsquad.net/
h http://paul.hoadley.name/
_______________________________________________
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