查看: 1951|回复: 10
|
求救,sql server高手快来救我!!!
[复制链接]
|
|
My server configuration Dell R715, duel AMD Processor opteron 6238 2.60Ghz , RAID 5 (PERC H700) raid controller, configured hard disk size 600*3 usable size is 1200Gb, 64Gb Ram size. having 4 gigabit Ethernet port.
Installed application: OS windows 2008R2 enterprise edition with sp1 and SQL Server 2008R2 enterprise with sp1.
for execute small SQL queries its takes more then 30 to 45 seconds.
But same application installed HP DL120 G6 server having Intel Xeon X3430 2.4Ghz processor 8Gb Ram 1*500GB hard disk having 2Gigabit NIC card.
Installed application: OS windows 2008R2 enterprise edition with sp1 and SQL Server 2008R2 enterprise with sp1.
for execute small SQL queries its takes more then 3 to 5 seconds.
Why?
|
|
|
|
|
|
|
|
发表于 2-1-2013 11:11 PM
|
显示全部楼层
1) see execution plan
2) cluster key? index key?
3) deadlock? |
|
|
|
|
|
|
|
发表于 1-2-2013 08:44 AM
|
显示全部楼层
and how big is your database size. There might be missing key which we called heap. |
|
|
|
|
|
|
|

楼主 |
发表于 1-2-2013 08:57 AM
|
显示全部楼层
my database size 500GB + +, without adding log |
|
|
|
|
|
|
|
发表于 1-2-2013 02:00 PM
|
显示全部楼层
check your task manager / CPU / Ram usage.
you may also do a quick testing by backup -- restore to a new database, shrink new database.
|
|
|
|
|
|
|
|
发表于 20-4-2013 09:42 AM
|
显示全部楼层
if you had large records size, check your table index 1st. |
|
|
|
|
|
|
|
发表于 21-4-2013 12:28 AM
|
显示全部楼层
lz 可以善用 Execution Plan 来 execute 你的 query 看哪里出问题 |
|
|
|
|
|
|
|
发表于 17-5-2013 10:18 AM
|
显示全部楼层
1 database file 500GB? oh quite huge size ... |
|
|
|
|
|
|
|
发表于 19-5-2013 11:10 PM
|
显示全部楼层
我觉得是你搬DB时没有做reindex,你尝试跑 sp_updatestats 看看有没有改变,如果没有就把你的execution plan 放上来
|
|
|
|
|
|
|
|
发表于 20-5-2013 12:22 AM
|
显示全部楼层
alexyen 发表于 1-2-2013 08:57 AM 
my database size 500GB + +, without adding log
我看过的database size 是250GB 而已。
一个database 可以有很多table, 所以database size 不直接影响你的query.
重要的是,你的table几大。
我试过40 millions的records, 但select 只是300miliseconds.
看你怎样design 你的table.
|
|
|
|
|
|
|
|
发表于 7-11-2013 12:33 PM
|
显示全部楼层
the sql
1 base on your sql design , volume and calculation
2 base on server performance
please show your sql and more detail |
|
|
|
|
|
|
| |
本周最热论坛帖子
|