• 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: Paul Hoadley <email@hidden>
  • Date: Wed, 4 Nov 2009 17:03:38 +1030

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.

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/


_______________________________________________ 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
  • Follow-Ups:
    • Re: EOModels occasionally loading too slowly?
      • From: Chuck Hill <email@hidden>
    • Re: EOModels occasionally loading too slowly?
      • From: Mike Schrag <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>)

  • Prev by Date: Re: now trying to deploy, get an immediate error, probably a missing resource(s)?
  • 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