I am examining the execution plan for several different SQL queries to find the best one for optimizecd performance. My test queries return 70 records out of a 38,000 record table.
Query A is the fastest and has a cost of 0.584
Query B takes 4 times as long and has a cost of 0.150
Query C is the slowest, but has the lowest cost, 0.0424.
What does this cost mean? I've looked in SQL Server Books Online, and it does not provide a definition of the signifigance of this number.
More important for my purposes, and does it's inverse proportion to the total time of my test queries mean that query C will be faster against large datasets? I can deal with slow performance against a 38000 record table, but I need fast performance against a 250,000 row table.
Query A is the fastest and has a cost of 0.584
Query B takes 4 times as long and has a cost of 0.150
Query C is the slowest, but has the lowest cost, 0.0424.
What does this cost mean? I've looked in SQL Server Books Online, and it does not provide a definition of the signifigance of this number.
More important for my purposes, and does it's inverse proportion to the total time of my test queries mean that query C will be faster against large datasets? I can deal with slow performance against a 38000 record table, but I need fast performance against a 250,000 row table.