Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Execution Plan - subtree cost vs. execution time

Status
Not open for further replies.

redlam

MIS
Jun 28, 2000
218
US
Hi there.
I am having trouble understanding different graphical execution plans for one of my SELECT queries. I have tested performance of this query using different joins and indexes and have noticed that the "subtree cost" could increase significantly even though the query execution time decreases with different scenarios. I assumed (incorrectly) that as query time decreases, so would the subtree cost. Why is this not the case? Can anyone give me a rough definition of "subtree cost" and how it relates to execution time?
Thanks for your input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top