Quantcast
Channel: Adobe Community : Popular Discussions - Reporting
Viewing all articles
Browse latest Browse all 38309

Coldfusion Reports .cfr file too slow

$
0
0

Hello

 

I created a .cfr file which is outputting the 12k records, I ran the query in SQL Mnager, runs good. but when I Create a report with the same query it takes more than 3 minutes to run, sometimes timesout.

 

I am working on  the CF 9 on x64 bit Win2008 Server , SQL 2005 is the DB. Accessing the Report from a URL.

 

Code Snippet from the Report

 

    <cfquery name="MyQuery" datasource="LargeMeters">
            SELECT "Account"."AcctStatus", "Account"."Account", "Meter"."Use", "Account"."TotalMeters", "Meter"."PMDueDate", "Meter"."PMFreq", "Meter"."DAC", "Account"."County", "Account"."Zone", "Meter"."IOR", "Meter"."MeterId", "Meter"."Mfr", "Account"."GridLetter", "Account"."Gridnum", "Meter"."StatusCode", "Meter"."Size", "Meter"."MeterType", "Meter"."BPMtrId", "Meter"."BPMfr", "Meter"."BPMtrSize", "Account"."PG", "Meter"."BPFlag", "Account"."Grid", "Account"."BillingCycle"
             FROM   "LargeMtrs"."dbo"."Account" "Account" LEFT OUTER JOIN "LargeMtrs"."dbo"."Meter" "Meter" ON "Account"."Account"="Meter"."Account"
             WHERE  "Meter"."StatusCode"=N'A' AND "Account"."AcctStatus"=N'01' AND "Meter"."BPFlag" IS  NULL
              ORDER BY "Account"."County", "Account"."PG", "Account"."GridLetter", "Account"."Gridnum", "Account"."Account", "Meter"."Use"
        </cfquery>

 

Thanks

Dan


Viewing all articles
Browse latest Browse all 38309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>