Mark Drew (Redux)- cf_etc...

a compendium of railo, cfml, cfeclipse and technology topics

Mark Drew (Redux)- cf_etc...

ModelGlue: Reload and Mode make a huge difference

July 18, 2006 ·

I just thought I would post this as some people asked me about OO frameworks and their performance speed. I have been developing a little model glue content management system for a certain CF IDE site who shall remain nameless and during the course of development I was thinking to my self "boy, this is slow, I know I am in development mode, but hell its not a hot rod". So I started having doubts about the performace and was getting worried. I thought I would remove the ModelGlue debugging and that made some difference, I turned off ColdFusion debugging and that made a bigger difference. I changed the reactor config from <property name="mode"><value>development</value></property> to <property name="mode"><value>production</value></property> And it was still not exactly screaming along. Then I realised I had forgotten (hey, its REALLY hot and humid here in London today, brain is fried) the <property name="reload"><value>true</value></property> property in the model glue config! I know, I know... easy mistake to do, but when I turned it to "false", guess what? Bovine excrement zooming off a shovel. Just remember this when you are going into production kids, or if you are starting to do some comparisons with other frameworks... otherwise it just aint fair calling frameworks slow.

Tags: coldfusion · model-glue

4 responses

  • 1 Brendan // Sep 22, 2008 at 4:12 PM

    Yep, makes a big difference, also moving to Unity helped alot. Need to make sure you reload (pass in &amp;init=true or whatever you use) when you do any changes though as it drives you crazy wondering why things arent changing :-)

    have you seen Jason Sheedy's post with regard to a model glue cms,

    http://jmpj.net/jason/index.cfm?mode=entry&amp;entry=B64A4532-CF1D-76B8-AAF3FBB975A470E7
  • 2 Mark Drew // Sep 22, 2008 at 4:12 PM

    This post was a kind of aide memoir as I was getting annoyed... but anyway, another tip is that if you are in CFEclipse, make sure you check wich Coldspring.xml file you are editing ;) I kept on changing one app's CS.xml file but checking the results in another file.
  • 3 Jacob Munson // Sep 22, 2008 at 4:12 PM

    &quot;Bovine excrement zooming off a shovel.&quot;

    That's not fair, Mark. You made me laugh out loud at work! ;)
  • 4 Mark Drew // Sep 22, 2008 at 4:12 PM

    I was thinking that the metaphor was quite wrong... but the visualisation is what I wanted to get across... good times :D

    MD