Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

2 different Execution plans for same query in Prod and UAT

$
0
0
Hi All,

We have a Simple Insert Statment which inserts into a table using a select statement as below, This Statement is executed on our Production and UAT databases.

Currently in Production it executes in 2 minutes but in UAT it takes more than 1 hr to execute on examinig the Execution plan the production Execution plan uses the Hash Join but where as the UAT it uses nested loop.

Below are few observations

1. Both Production Database and UAT database are on the same server
2. The Indexes, character types are same in both the databases
3. we updated the statistics on UAT and Prod, but the issue still exists in UAT.
4. the only option currently we have is create a plan guide with Hash join query hint, becuase for some 

reason we are not suppose to modify query.

is there any option we should check

Viewing all articles
Browse latest Browse all 15694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>