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) 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. I had found that on low traffic sites before that, the first person to call a page after a time of inactivity would get a page timeout because of all the cfcs that had to be instantiated. And because i hadn't been paying attention to which were supposed to be singletons, i was instantiating some cfcs on every page sometimes multiple times on the page, when they didnt need to be. Once i fixed up the XML file with the right parameters for the different CFC types, i found that sites just loped along sweetly Everything was much MUCH quicker. 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 6:27 PM, Chris Velevitch <chris.velevi...@gmail.com> wrote: > > On Fri, Apr 17, 2009 at 15:55, Gavin Baumanis <beauecli...@gmail.com> wrote: >> At the moment, I am creating all of me coldspring beans and manager / >> gateway CFC's as singletons, with the code below. > > Is that the recommended approach? > > > Chris > -- > Chris Velevitch > Manager - Adobe Platform Users Group, Sydney > m: 0415 469 095 > www.apugs.org.au > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---