在ms sql server 2008中获取数据的速度很慢 [英] Slow in fetching datas in ms sql server 2008

查看:115
本文介绍了在ms sql server 2008中获取数据的速度很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Frnds,

我正在研究ASP .net项目,它有助于进行在线测试。我已经以字节格式向数据库添加了问题。当我从数据库中提取问题时,花费更多时间。对于特定主题1000个问题就在那里。当我选择主题并点击show我是gridview中的绑定问题。我每页都给出了分页10.但是它需要超过2分钟来绑定。我正在使用存储过程来获取。请告诉我我快速得到问题。问题也包含图像。所以内存更多。

Hi Frnds,
I am working on ASP .net Project which helps to take online test.I have added questions to database in byte format.When i fetching questions from database its taking more time.for particular subject 1000 questions is there.When i select subject and click show i am binding questions in gridview.I am given paging per page 10.But its taking more than 2 mins to bind.I am using Stored Procedures for fetching.Please tell me quick way to get questions.Questions contain images also.So memory is more.

推荐答案

数据库中出现缓慢问题的原因很多。

你没有在你的问题中包含存储过程,所以没有看到我们无法快速发现问题。这里有一些优化方法。

SQL服务器DO和DONT [ ^ ]

优化数据访问的十大步骤SQL Server:第一部分(使用索引) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第二部分(重新考虑TSQL并应用最佳实践) [ ^ ]

在SQL Server中优化数据访问的十大步骤:部分II I(应用高级索引和非规范化) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第四部分(诊断数据库性能问题) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第五部分(优化数据库文件)并应用分区) [ ^ ]
There're lot of reasons for slow issues in database.
And you didn't include the stored procedure in your question, so without seeing that we can't spot the issue quickly. Here some way to optimize things.
SQL Server DO's and DONT's[^]
Top 10 steps to optimize data access in SQL Server: Part I (use indexing)[^]
Top 10 steps to optimize data access in SQL Server: Part II (Re-factor TSQL and apply best practices)[^]
Top 10 steps to optimize data access in SQL Server: Part III (Apply advanced indexing and denormalization)[^]
Top 10 steps to optimize data access in SQL Server: Part IV (Diagnose database performance problems)[^]
Top 10 steps to optimize data access in SQL Server: Part V (Optimize database files and apply partitioning)[^]


如果你没有在存储过程中使用分页,那么在sp中使用分页


见这里ç ustom分页 [ ^ ]



自定义SEO友好分页 [ ^ ]
If you did not use pagination in stored procedure then use pagination in the sp

See here Custom Pagination[^]

Custom SEO friendly pagination[^]


这篇关于在ms sql server 2008中获取数据的速度很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆