Hello everyone,
This is related to SQL Server 2005
I have a problem. I have a FTI in 3 environments, Dev, QA and Prod. I have two queries that run against my index. Now for some reason in Dev and QA they run in 0 secs but in prod they take 6 mins.
After looking at the execution plan an in both dev and QA, there's an Index Seek that's taking 90% of the exec time and a Remote Scan that takes about 10% give or take.
But in prod running the same query the Index Seek is taking about 10% and the Remote Scan is taking about 90%.
I moved the prod DB to the Dev and QA boxes to see if the problem still exists and yes it does. Because first thoughts were there might be a hardware issue. But after running this little test, I’ve come to the conclusion that the problem might be within the DB or the index and not hardware related.
I did a schema compare using one of the tools we have here at work and they are the same. Same scripts used to create all three FTI’s. The only difference is my Dev and QA Db’s are set to a Simple recovery model and Prod is set to Full.
Does anyone know why my prod database is using this funky plan?
Thanks
Well Done is better than well said
- Ben Franklin
This is related to SQL Server 2005
I have a problem. I have a FTI in 3 environments, Dev, QA and Prod. I have two queries that run against my index. Now for some reason in Dev and QA they run in 0 secs but in prod they take 6 mins.
After looking at the execution plan an in both dev and QA, there's an Index Seek that's taking 90% of the exec time and a Remote Scan that takes about 10% give or take.
But in prod running the same query the Index Seek is taking about 10% and the Remote Scan is taking about 90%.
I moved the prod DB to the Dev and QA boxes to see if the problem still exists and yes it does. Because first thoughts were there might be a hardware issue. But after running this little test, I’ve come to the conclusion that the problem might be within the DB or the index and not hardware related.
I did a schema compare using one of the tools we have here at work and they are the same. Same scripts used to create all three FTI’s. The only difference is my Dev and QA Db’s are set to a Simple recovery model and Prod is set to Full.
Does anyone know why my prod database is using this funky plan?
Thanks
Well Done is better than well said
- Ben Franklin