FIX: Higher Cost Executing Query on View with Subquery
Last reviewed: December 31, 1998 |
The information in this article applies to:
SYMPTOMSFor SQL Server version 6.5 U.S. Service Pack 1 and later, execution time is slower for executing a query with a conditional clause on a view created with a subquery than for the comparable query run directly against the underlying tables. SET STATISTICS IO ON shows a higher scan count value when the query is executed against the view rather than the underlying tables.
CAUSEThe cost of creating the worktable for the subquery is not affected by the conditional clause when executed against the view.
WORKAROUNDTo improve performance, do either of the following:
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5 U.S. Service Pack 1 and later. This problem has been corrected in the latest U.S. Service Pack for SQL Server version 6.5. For more information, contact your primary support provider.
|
Additional query words: performance |
Last reviewed: December 31, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.