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 think I've at least made the problem deterministic now in my case. In LSApplication.didFinishLaunching, I was fetching some EOs. If I comment that out, then the first EOF request is in the default page:
LogIn.allNotices: ENTRY
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1230)
at er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:125)
at er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:135)
...
And everything seems to proceed in an orderly manner. Just about to try Mike's changes.