A Simple Weather App in TypeScript
6 days ago
<cfif isDefined("form.loginSubmit") and true>
in the login script.<cfsetting requestTimeOut = "240000" >I mean seriously? 66 Hours???!
<cfset startTimer = getTickCount()> <cfinclude template = "#arguments.targetPage#"> <cfset timeSpent = getTickCount() - variables.startTimer>After getting the timeSpent I saved the user, date, file name, and timeSpent to a new table. This afforded me the opportunity to get some analysis on our analysis. How ironic. I was able to create two quick views. The first is simply the data I saved highlighting the longer running reports by color. The other was the fastest, average, and slowest processing times and a hit count of the report.
<cfsetting requesttimeout="960" /> <cfset variables.parsedXMLLen = arrayLen(variables.parsedXML.XMLrootElement.XMLChildElement) > <cfset variables.startXMLLongLoop = getTickCount() ><cfset variables.stopXMLLongLoop = getTickCount() > #variables.parsedXML.XMLrootElement.XMLChildElement[variables.i].id.xmlText#
<cfset variables.XMLByRef = variables.parsedXML.XMLrootElement.XMLChildElement > <cfset variables.startXMLShortLoop = getTickCount() ><cfset variables.stopXMLShortLoop = getTickCount() > #variables.XMLByRef[variables.i].id.xmlText# Fully qualified: #variables.stopXMLLongLoop-variables.startXMLLongLoop# miliseconds to loop #variables.parsedXMLLen# times Referenced: #variables.stopXMLShortLoop-variables.startXMLShortLoop# miliseconds to loop #variables.parsedXMLLen# times
The result:The first loop using #variables.parsedXML.XMLrootElement.XMLChildElement[variables.i].id.xmlText# took almost 9 minutes to run!!
Fully qualified: 537765 miliseconds to loop 12804 times
Referenced: 250 miliseconds to loop 12804 times
Max Pooled Statements enables reuse of prepared statements (that is, stored procedures and queries that use the cfqueryparam tag). Although you tune this setting based on your application, start by setting it to the sum of the following:
Unique cfquery tags that use the cfqueryparam tag
Unique cfstoredproc tags
display:table-cell; display:table-row;But that didn't work either.
<td><div>#dateFormat(now(), "mm/dd/yyyy")#</div></td>