Query Performance

  • Hi ,

    if we have 2 queryies which gives same output , how to calaculate the which is the best throygh SHOW EXECUTION PLAN ,what shopuld the cost value .

    thankls

  • The cost value percentage will just highlight which part of the query takes the most time/resources. You really need to look at the number of reads (logical and physical) being done and the number of records going from each step in the plan.

    If possible, it would be a good idea to post each of the plans so we can compare them.

     

    --------------------
    Colt 45 - the original point and click interface

  • A more straight way is to capture the running duration for the two queries by running sql profiler. it can tell you logical reads and phsical writes etc as well.

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

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