Thanks Mark. Shows what happens when you write something from memory when you've been up all night the previous night. <g>
Ok so what i REALLY do is set singleton="false" on any beans where i get Coldspring to instantiate them . Which is the same thing i said, but the action required is the opposite way around to the way i said it. The point's the same though - as soon as i sorted out the lazy-init thing and controlled which objects were set up as singletons and which weren't, it sped things up a lot. The first version of my first ColdSpring based site was always timing out on the first time a page was called after a server restart, which was very frustrating until i sorted that aspect out. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On Fri, Apr 17, 2009 at 10:07 PM, Mark Mandel <[email protected]> wrote: > > On Fri, Apr 17, 2009 at 7:45 PM, Mike Kear <[email protected]> wrote: >> >> Back when i was first experimenting with Coldspring, I found i got big >> improvements in time-to-page-rendering in low-traffic sites when i >> tidied up my XML file - making the following settings, which should >> have been there in the first place: >> >> All DAOs and gateways as singletons (i had been a bit haphazard about >> that not really understanding that aspect up till then) > > Singleton="true" is the default state, you don't have to set it explicitly. > > >> No beans as singletons. (i managed to get away with doing that wrong >> up till that point, by sheer good luck) >> using Lazy-init=true on all cfcs.so they are only instantiated >> if/when they're needed. > > lazy-init="true", is also the default state, so you don't have to set > it explicitly either. > > Just so you don't have to do as much typing ;o) > > Mark > > -- > E: [email protected] > W: www.compoundtheory.com > > > > -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
