-
use of composite indexes
Hi,
Suppose there is a composite index on a table, and in includes, for example 3 columns.
If I do a select using one of those three columns, will the select use the composite index? Will it aid in retrevial or should I create an index on the
individual column.
any thoughts on this would be appreciated.
thanks
-
Enter your query in Query analyzer and view the estimated execution plan. What does it say in there? Is it doing an index scan/seek or a table scan?
-
Depends on which column you query for. If you don't use first column in the index in where clause, optimizer will not use that index.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|