Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When the data up to 10000 my application had spent more than 10s get the data.So It big problem.How to reduce the select sentence time.In the structure of the table there have three big field data,length "varchar(3000)".Please help ,tell me how to Optimize.

All of the Data must be see.So if the table have 10000 ,it show 10000.It also pageing !Now the Problem is how improve the speed and Optimize !
Posted
Updated 5-Jul-11 16:57pm
v3
Comments
[no name] 5-Jul-11 3:15am    
please provide us the Query....
Because 10000 records are toooo less for SQL Server database to handle.

Your data likely needs to have indexing set up and perhaps some normalization needs to occur. The likelihood that a user requires 10000 large records at a given time is highly unlikely and I would suggest that you need to perhaps use some form of paging instead of just looking at the query alone.
 
Share this answer
 
Comments
harish85 5-Jul-11 22:53pm    
my 5, and ignore my solution.
You need to analyze your database schema and the way query has been written for that. This is far too less information to give a proper response.

Check the Execution plan for the query. You can also use SQL tuning advisor.
 
Share this answer
 
I think Your database is not normalized and no indexing has been done. So Normalize your database and do indexing, it can help you a lot. If still you have performance related problems check execution plan for the query.
 
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