We had a slow page loading and upon investigating it was the query execution. I noticed the page on the dev server was fine and I noticed when I ran the query via MSSQL Mgt Studio it ran fine, only on the CF page it was slow. I noticed the ids were being checked with a cfsqltype
of cf_sql_numeric
instead of cf_sql_integer
. For kicks I changed it to integer and it now loaded as expected.
So, what gives, why would that make a difference?
As to why it may have suddenly started going slow was our DBA added some indexes recently to speed up the DB in general. But still, why so slow just based on the param type.