BUG: Higher Cost Executing Query on View with SubqueryLast reviewed: July 3, 1997Article ID: Q170803 |
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 onward. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: performance
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |