Same Query giving different execution pan and performance

  • Hello Friends, Stuck in very strange situation. I have populated few tables for two set of parameters [equal number of records in each of them]. Now running the sproc with the different parameters is giving totally different results. For one set of parameters its taking just 8 seconds and for another set of parameters its taking around 45 seconds. The sproc contains just one select statement with joins between five tables. There is different execution plan for both set of params.

    Statistics are updated in all the tables. Number of records for both the parameters is same in all five tables. Need your suggestions.

  • Sorry Guys. One of the table had old statistics and updating the same resolved the issue. All the results are coming as expected. 🙂

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply