• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOModels occasionally loading too slowly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModels occasionally loading too slowly?


  • Subject: Re: EOModels occasionally loading too slowly?
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 4 Nov 2009 09:21:19 -0800


On Nov 3, 2009, at 10:33 PM, Paul Hoadley wrote:

Thanks for you help so far, Mike and Chuck. I've kind of hit a wall here. AFAICS, Mike's recent commit didn't fix this issue for me.

I've narrowed it down to touching EOF in LSApplication.didFinishLaunching(): if I remove the offending code in there, I can't reproduce the problem. Firstly I want to know if I'm doing something wrong—should I not be touching EOF in didFinishLaunching()? (And if so, where else can I do some post- launch loading of EOs?)

But secondly I'm interested in any workarounds.

I don't know this part of Wonder well enough to offer much insight. It feels like some part of the initialization is happening in a parallel thread that has not finished by the time that didFinishLaunching() runs. But... I don't recall Wonder creating any such thread starting up the app.


Does adding this make any difference?

	public void finishInitialization() {
		NSBundle.frameworkBundles();
	}


Chuck


On 04/11/2009, at 11:49 AM, Mike Schrag wrote:

So I never see this because I use migrations on every app, so the models are touched early all the time ... But if i turn off migrations, it does look like it's not triggered until the first EOF request.

I don't use migrations, but is there any way I can force the model loading to occur earlier? Is there any way to block the app from taking requests until the models have loaded? I guess I just need anything to make this deterministic—at the moment, success seems to depend on how fast the models are loaded after touching EOF in didFinishLaunching(). (Interestingly, I haven't reproduced this problem on my Mac Pro—presumably it's fast enough to get everything done in time every time.)



-- Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/



-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________
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


References: 
 >EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Gennady Kushnir <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Chuck Hill <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Mike Schrag <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Chuck Hill <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Mike Schrag <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)

  • Prev by Date: RE: WEBINFROOT changes make no effects
  • Next by Date: RE: Gianduia and WO
  • Previous by thread: Re: EOModels occasionally loading too slowly?
  • Next by thread: Re: EOModels occasionally loading too slowly?
  • Index(es):
    • Date
    • Thread