• sqlnaive (1/29/2013)


    Don't you think once the statistics are upgraded, even if the new query plan is created, it will be optimal ?

    Maybe, maybe not. If all the stats are up to date and the optimiser has enough time then it should be good enough.

    And secondly, what does it mean by the issues like "not finding a new month or new fiscal year for month end reporting in the statistics and hence choosing a sub-optimal plan" ?

    http://sqlinthewild.co.za/index.php/2011/03/22/statistics-row-estimations-and-the-ascending-date-column/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass