Question
Stored Proc Performance vs CFusion
I'm relatively more experienced with sql and for the variety
of reasons discussed elsewhere (performance, security, portability
HTML/flex and MVC code organization) am building an app more with
cfcs and stored procedures.
That said, initial iterations are usually <cfquery> based, however I have just moved a relatively simple procedure (which sets the look and feel for the home page depending on visitor IP) from
<cfquery>
to
<cfinvoke> a cfc which then <cfstoredproc> a mysql 5.1 stored procedure
Long story short, it all works but the latter is taking longer to load (exact same data from exact same devserver machine with both cf8 and mysql on it) by a significant factor (probably 100 times).
Any thoughts on why? (fwiw server is p4 800 mhz 1.5 Gb Ram)
That said, initial iterations are usually <cfquery> based, however I have just moved a relatively simple procedure (which sets the look and feel for the home page depending on visitor IP) from
<cfquery>
to
<cfinvoke> a cfc which then <cfstoredproc> a mysql 5.1 stored procedure
Long story short, it all works but the latter is taking longer to load (exact same data from exact same devserver machine with both cf8 and mysql on it) by a significant factor (probably 100 times).
Any thoughts on why? (fwiw server is p4 800 mhz 1.5 Gb Ram)
