Cost Threshold for Parallelism

  • Hi

    I have a query that use parallelism and takes 6 secs to run. I wanted to see how this would perform without parallelism and so set the threshold to 10, however my query still uses parallelism. Have I missed another setting somewhere?

    Thanks

  • Cost != duration.

    Check the execution plan for the query, see what the cost is, set cost threshold above that. Or just use the maxdop hint on that query.

    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
  • Ah yes thats sorted it, I was reading this article where it says "Estimatedcost in seconds.." which is what confused me.

    http://msdn.microsoft.com/en-us/library/ms190949.aspx

    Hopefully catch your session at SQLBits later this week.

    Thanks

  • That estimated cost isn't in real "seconds." It's just a number used for the internal calculations.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 4 posts - 1 through 3 (of 3 total)

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