Click here to Skip to main content
15,888,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a table contains 12400437 records, I want get the count of records by Gender-Male and female by country wise and age. It was taking 38 secs to run that stored procedure.Please tell me the any other way to fetch the records in less time..
Posted

1 solution

Hi Laxman,

I have following check list.it will help you to reduce the timing to exicute the query.

1)Check the indexes on the table.
2)Main thing is SP does't take more then 32 level try to reduce the levels of conditions from the sp(stored procedures)


Another Best thing you can do(In .net)
prefer the Asyncronous data processing like

BeginExicuteNonQuery
EndExicuteNonQuery

Etc

Regards
Deepak
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900