SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Performance Issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

scelamko
Constraint Violating Yak Guru

309 Posts

Posted - 06/03/2008 :  16:21:39  Show Profile  Reply with Quote
Guys,

I am running the same query in the same copies of databases on 2 different instances it gives me different time periods
10 secs for on instance A and 90 secs for on instance B. The database on instance B is exact copy/restore of database on instance A.

The execution plans for the query is also same from Instance A and Instance B.

How do I start troubleshooting the performance on the Instance B?

Any suggestions and inputs would help.

Thanks

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 06/03/2008 :  16:23:18  Show Profile  Reply with Quote
Do those instances have same system resources? Did you compare i/o statistics?
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 06/03/2008 :  16:24:31  Show Profile  Reply with Quote
Are stats updated after restoring database? check if index is fragmented with DBCC showcontig? Otherwise you have rebuild index which will also take care of updating stats.
Go to Top of Page

scelamko
Constraint Violating Yak Guru

309 Posts

Posted - 06/03/2008 :  17:14:32  Show Profile  Reply with Quote
how do we know index fragmentation from DBCC SHOWCONFIG.

for example for the following table how do I know index fragmentation

DBCC SHOWCONTIG scanning 'ACM_EVENT_ENTRY_EXECUTION' table...
Table: 'ACM_EVENT_ENTRY_EXECUTION' (1887397843); index ID: 0, database ID: 27
TABLE level scan performed.
- Pages Scanned................................: 0
- Extents Scanned..............................: 0
- Extent Switches..............................: 0
- Avg. Pages per Extent........................: 0.0
- Scan Density [Best Count:Actual Count].......: 100.00% [0:0]
- Extent Scan Fragmentation ...................: 0.00%
- Avg. Bytes Free per Page.....................: 0.0
- Avg. Page Density (full).....................: 0.00%

Thanks
Go to Top of Page

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 06/03/2008 :  18:31:02  Show Profile  Reply with Quote
Numbers don't look like real. Basically, Scan Density should close to 100%.
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 06/03/2008 :  18:55:03  Show Profile  Reply with Quote
No pages are scanned. Try with table which are used in joins .
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000