October 3, 2012 at 4:35 pm
I have a perplexing performance issue. I have a database system installed at two remote sites. Both sites have identical hardware configuration, same version of Windows Server 2008 R2, identical memory, and SQL Server 2008 R2. According to the query plan analysis the database tables have the proper and necessary indexes. On the development machine the procedure returns immediately. Both databases at either site have roughly the same row counts in each of the tables.
A stored procedure executed via SSMS executes in less then 1 sec at one site but takes 15 min at the other site which of course is absurd. Since the sites are remote I am have the site rep sun through the DBCC commands to determine if there are any internal corruptions. There are no errors reported in the server log.
My question is, assuming the DBCC commands do not turn up any internal inconsistencies what other options should I persue to track down the root cause of this error?
October 3, 2012 at 4:53 pm
Get the execution plans (actual) for the 2 procs. The plans should be different and will probably give a clue as to how the server is deciding to attack the 2 queries. The answer to why the plans are different will point the way to the difference between the servers.
October 3, 2012 at 5:52 pm
mcginn (10/3/2012)
I have a perplexing performance issue. I have a database system installed at two remote sites. Both sites have identical hardware configuration, same version of Windows Server 2008 R2, identical memory, and SQL Server 2008 R2. According to the query plan analysis the database tables have the proper and necessary indexes. On the development machine the procedure returns immediately. Both databases at either site have roughly the same row counts in each of the tables.A stored procedure executed via SSMS executes in less then 1 sec at one site but takes 15 min at the other site which of course is absurd. Since the sites are remote I am have the site rep sun through the DBCC commands to determine if there are any internal corruptions. There are no errors reported in the server log.
My question is, assuming the DBCC commands do not turn up any internal inconsistencies what other options should I persue to track down the root cause of this error?
First blush guess would be parameter sniffing. Try executing the stored procedure on the slower machine with the option to recompile and see what happens.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2012 at 6:53 am
Statistics?
Is large chunks of data in your PROD version were recently inserted/changed/removed?
October 4, 2012 at 9:28 am
All of the data in the database was migrated from another system. After migration of the data all of the indexes were re-created and all of the statistics updated. We followed this procedure on both systems; one has fast performance the other really poor performance.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply