CPU
|
Intel T2300 1.66GHz
|
内存
|
Kingston
DDR2 667 1G
|
硬盘
|
80G
5400
转
8m
|
操作系统
|
Windows Server 2003
|
数据库系统
|
SQL Server 2005 Enterprise
|
数据规模
|
1000000
条数据
|
名称
|
类型
|
备注
|
id
|
int
|
标志\聚集索引
|
name
|
nvarchar(50)
|
非聚集索引
|
birthday
|
datetime
|
生日
|
height
|
int
|
身高
|
sex
|
int
|
性别
|
address
|
nvarchar(100)
|
地址
|
lastlogintime
|
datetime
|
非聚集索引
|
语句
|
DataReader
费时
|
DataSet费时
|
string sQuery = "SELECT * FROM dbo.test where id <= 1"
|
0ms
|
0ms
|
string sQuery = "SELECT * FROM dbo.test where id <=10"
|
1ms
|
1ms
|
string sQuery = "SELECT * FROM dbo.test where id <=100"
|
2ms
|
3ms
|
string sQuery = "SELECT * FROM dbo.test where id <=1000"
|
5ms
|
6ms
|
string sQuery = "SELECT * FROM dbo.test where id <=10000"
|
8ms
|
50ms
|