asp.net - Page taking 15s to load due to SQL queries -


i have dashboard displays 5 live totals calculated using 5 separate select count (*) queries. result of these inserted page with

       using rdr sqldatareader = db.execdatareader(qry1)             rdr.read()             qa1.innertext = rdr(rdr.getname(0))         end using          using rdr sqldatareader = db.execdatareader(qry2)             rdr.read()             qa2.innertext = rdr(rdr.getname(0))         end using 

is there way reduce load time? tried joining queries union , in sql sms takes few seconds off time, don't know how pull each 'row' result.

that said, still 12 seconds in server management studio still undesirable dashboard. hands tied our infrastructure?

it sounds count queries need optimised. if they're running slowly, either you've got lot of data count, or there's complex query that's improperly optimised.

you'd need post more details table structure , queries using able possible cause of slow queries might be.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -