从Sqlserver表中恢复数百万条记录时如何提高性能? [英] How to improve performance when retreving millions of records from Sqlserver table?

查看:96
本文介绍了从Sqlserver表中恢复数百万条记录时如何提高性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一张名为abc的表,还有数百万行。



when我从Sqlserver2008R2中的表中选择了百万条记录。



如何提高选择查询的性能?如果有人知道这请亲密我。





提前付款



问候

Santhoshkumar

Hi,

I have one table named abc and there is milion rows.

when i Select million records from table in Sqlserver2008R2.

How to improve performance for select query? If anybody knows this Please intimate me.


Thanks in advance

Regards
Santhoshkumar

推荐答案

为什么?一次有数百万条记录?这不是一个好方法。



在显示数据时使用分页/过滤。



在数据库方面

SQL Server 2005分页结果 [ ^ ]



In前端

GridView多重过滤器AJAX控件 [ ^ ]

重复分页和分页功能 [ ^ ]



查看本系列的数据库优化

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

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

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

返回顶部在SQL Server中优化数据访问的10个步骤:第IV部分(诊断数据库性能ormance问题) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第五部分(优化数据库文件并应用分区) [ ^ ]



编辑




水晶报道

优化报告效果 [ ^ ]

优化Crystal Reports [ ^ ]

Crystal Reports:5次性能测试 [ ^ ]

Crystal Reports 2008 - >绩效改进技术 [ ^ ]

CrystalReports性能提示 [ ^ ]
Why? Millions of records at a time? That's not a good way.

Use paging/filtering while displaying the data.

In database side
SQL Server 2005 Paging Results[^]

In frontend
GridView Multiple Filter AJAX Control[^]
Repeater with Paging and Sorting Features[^]

Check this series for database optimization
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)[^]

EDIT


Crystal reports
Optimizing Report Performance[^]
Optimizing Crystal Reports[^]
Crystal Reports: 5 Tests for Top Performance[^]
Crystal Reports 2008 -> Performance Improvement Techniques[^]
CrystalReports Performance Tips[^]


我有几点:



1.在表格上定义索引

2.在select语句之前使用SET NOCOUNT ON

3.在SELECT语句中使用列名而不是*(astrik)。
I have few points:

1. Define indexes on table
2. Use SET NOCOUNT ON before select statement
3. Use column name in SELECT statement instead of * (astrik).


这篇关于从Sqlserver表中恢复数百万条记录时如何提高性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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