page load takes too long
hi i run the the storedprocedure in SQL management studio. It executes in less than a second. In my page i query the storeprocedure 5 times. It takes about 15 seconds for the page to load. Is there away to speed this up??? Thank you!!
I am a beginnner working on being an intermediate. The stored procedure is listed here. I use the same code for each region that i am querying for.
<cfstoredproc procedure="dbo.StatewideFatalCollisionsByRegion" datasource="cfpMeasure">
<cfprocresult name="fatals">
</cfstoredproc>
cfquery name="fatals" dbtype="query">
Select collisionYear, total as fatal
FROM fatals
where region='NW'
</cfquery>
I have six regions and I have this code repeated on the page for each region. I am using the result set for charts.
<cfchart font="arial"
fontbold="yes"
xaxistitle="Year"
yaxistitle="## of Fatal"
title="NW Region Fatal"
scalefrom="0"
scaleto="60"
format="jpg"
fontsize="14"
chartwidth="270"
chartheight="275"
showborder="yes"
showlegend="no">
<cfchartseries
type="line"
seriescolor="##000099"
query="fatals"
itemcolumn="collisionYear"
valuecolumn="fatal">
</cfchart>
