佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1951|回复: 10

求救,sql server高手快来救我!!!

[复制链接]
发表于 2-1-2013 07:08 PM | 显示全部楼层 |阅读模式
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?
回复

使用道具 举报


ADVERTISEMENT

发表于 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.
回复

使用道具 举报

Follow Us
发表于 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 ...
回复

使用道具 举报


ADVERTISEMENT

发表于 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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 13-9-2025 12:53 PM , Processed in 0.140099 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表