Same SQL query executing differently in two different enviornments
Hi All,
I am running below query to retrieve Item information by using "WITH" clause for faster execution of the query.
Below query ran well and generated output for 8 days with minimum execution time around 1 minute.
All of sudden it is running for more than 3 hours and giving Snap shot too old error.
Out Initial check on new changes and new data was not successful as there is no code fixes moved and the data got updated,
Can anybody kindly suggest how to identify if any specific newly introduced data causing this query to run very long?
The below query executed and gave results when we modified the query by replacing with clauses with INLINE views. Appreciate if anybody can help to understand why WITH clause query taking time all of sudden and what is the difference that INLINE view query able to generate results.