Query Tuning Recommendations

Some queries are inherently resource intensive. This is related to fundamental database and index issues. These queries are not inefficient, because the query optimizer will implement the queries in the most efficient fashion possible. However, they are resource intensive, and the set-oriented nature of Transact-SQL can make them appear inefficient. No degree of query optimizer intelligence can eliminate the inherent resource cost of these constructs. They are intrinsically costly when compared to a less complex query. Although Microsoft® SQL Server™ will use the most optimal access plan, this is limited by what is fundamentally possible. For example, the following types of queries can be resource intensive:

However, recommendations for tuning queries and improving query performance include:

See Also
CASE Subquery Fundamentals
GROUP BY Fundamentals  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.