• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

PM for SQL Server 2008

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    PM for SQL Server 2008

    Dear SQL Server 2008

    Please, please don't, without any warning or authorisation, ditch a query plan that has worked perfectly well and efficiently over a year and replace it with a plan that causes the query to run 120x slower.

    Doing so is very annoying.

    Many thanks
    mudskipper

    #2
    Originally posted by mudskipper View Post
    Dear SQL Server 2008

    Please, please don't, without any warning or authorisation, ditch a query plan that has worked perfectly well and efficiently over a year and replace it with a plan that causes the query to run 120x slower.

    Doing so is very annoying.

    Many thanks
    mudskipper
    A poor work(wo)man always blames their tools.
    What happens in General, stays in General.
    You know what they say about assumptions!

    Comment


      #3
      Originally posted by MarillionFan View Post
      A poor work(wo)man always blames ClientCo's tools.
      FTFY

      Comment


        #4
        When did you last update the statistics on the database(s)?
        I suggest you do that first, and see whether it starts to use the old (correct) query plan again.

        Comment


          #5
          Originally posted by KentPhilip View Post
          When did you last update the statistics on the database(s)?
          My guess is over a year ago.
          merely at clientco for the entertainment

          Comment


            #6
            Originally posted by KentPhilip View Post
            I suggest you do that first, and see whether it starts to use the old (correct) query plan again or breaks loads of others.
            Well, it might...
            While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

            Comment


              #7
              Originally posted by KentPhilip View Post
              When did you last update the statistics on the database(s)?
              I suggest you do that first, and see whether it starts to use the old (correct) query plan again.
              Did that. Didn't work. Users not happy, so had to resolve quickly. Adding ' OPTION (FORCE ORDER) ' seemed to do the trick, but guess this could happen to any query if the stats change.

              Comment


                #8
                USE PLAN query hint.

                Sorted.

                Comment


                  #9
                  Originally posted by DimPrawn View Post
                  USE PLAN query hint.

                  Sorted.
                  Yep, if you've got the original plan...

                  Comment


                    #10
                    I suppose that with not having any SQL Server skills I shouldn't have changed it myself. But can you fix it?

                    Comment

                    Working...
                    X