When I place a constant within a cfqueryparam, I am noticing performace degradation.
SELECT myField1, myField2, myField3 FROM myDBtable WHERE myRecID = <cfqueryparam value=#val(url.id)# cfsqltype="CF_SQL_INTEGER"> AND myTypeID = <cfqueryparam value=22 cfsqltype="CF_SQL_INTEGER"> The query above runs slower than the query shown below: SELECT myField1, myField2, myField3 FROM myDBtable WHERE myRecID = <cfqueryparam value=#val(url.id)# cfsqltype="CF_SQL_INTEGER"> AND myTypeID = 22 Can anyone tell me why this is, why placing the hard-coded value of 22 into a cfqueryparam causes a performance hit? thanks in advance for insight Charles Hanlon Web Applications Developer Food Service Enablers, Inc. www.fsenablers.com The People. The Platform. The Products. Make the Difference ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257781 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

