coldfusion-9

How can <cfqueryparam> affect performance for constants and null values?

筅森魡賤 提交于 2019-11-27 04:47:36
问题 Consider the following: <cfquery name="aQuery" datasource="#aSource#"> SELECT aColumn FROM aTable WHERE bColumn = <cfqueryparam value="#aVariable#" cfsqltype="#aSqlType#" /> AND cColumn = 'someConstant' AND dColumn is null </cfquery> If I change AND cColumn = 'someConstant' to AND cColumn = <cfqueryparam value="someConstant" cfsqltype="#aSqlType#" /> Is there a potential performance improvement? Is there potential to hurt performance? What if I do the same (use cfqueryparam) with AND dColumn

Slow query with cfqueryparam searching on indexed column containing hashes

可紊 提交于 2019-11-26 22:26:49
问题 I have the following query that runs in 16ms - 30ms. <cfquery name="local.test1" datasource="imagecdn"> SELECT hash FROM jobs WHERE hash in( 'EBDA95630915EB80709C69089315399B', '3617B8E6CF0C62ECBD3C48DDF8585466', 'D519A38F09FDA868A2FEF1C55C9FEE76', '135F94C3774F7719CFF8FF3A275D2D05', 'D58FAE69C559273D8427673A08193789', '2BD7276F209768F2FCA6635659D7922A', 'B1E3CFBFCCFF6F5B48A849A050E6D424', '2288F5B8A797F5302E8CA24323617236', '8951883E36B5D38A4643DFAA0396BF13',

Java SimpleCrypto Class for encryption / decryption producing different results in Coldfusion 9 and Java (Android)

本小妞迷上赌 提交于 2019-11-26 16:57:32
问题 I am trying to use the widely used SimpleCrypto java class to encrypt a string in Java (Android) and decrypt the string in ColdFusion 9 (and vice versa). I have imported the exact same SimpleCrypto class into ColdFusion and called it like this: <cfset myKey = "apple"> <cfscript> sc = createObject("java", "SimpleCrypto").init(); encrypted = sc.encrypt(myKey, "john"); </cfscript> <cfdump var="#encrypted#"> When encrypting the string "john" with a key of "apple" it outputs this in CF: