且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在ms sql server 2008中获取数据的速度很慢

更新时间:2023-02-02 23:03:00

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

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

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[^]