﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Performance Tuning  / Index Vs Select criteria sequence / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 16:11:59 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>I was just curious about the columns that you might have in there! Could you provide us some detail about that (It would be great for me since I am new to this field and exploring things :cool:)</description><pubDate>Tue, 09 Feb 2010 11:21:29 GMT</pubDate><dc:creator>rvphx</dc:creator></item><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>I would stick with the Design Guidelines for using clustered/non clustered indexes that appears on MSDN. It should give a pretty good idea as to where and what kind of index you might want to use. :-)</description><pubDate>Tue, 09 Feb 2010 11:14:51 GMT</pubDate><dc:creator>rvphx</dc:creator></item><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>[quote][b]Jaya Chitra (9/23/2008)[/b][hr]Dear All,Thanks for you replies.I have the table which contains some properties of the document in my knowledge repository.The user can search by specifying any values to the properties.Based on the values in the properties the where criteria is framed and then I am sending this to the stored procedure.In the stored procedure I am framing the dynamic query with the where clause with the input where clause.The table has minimum more than 200000 documents.So I don't know how to make the index.I had a discussion and some were saying that I can have index for all the fields.Can any one tell me how to resolve this?Thanks a lot.[/quote]Study the clustered,nonclustered and covering indexes in BOL....Making a clustered index on the columns in where clause will improve performance</description><pubDate>Wed, 24 Sep 2008 04:50:28 GMT</pubDate><dc:creator>Sqlfrenzy</dc:creator></item><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>[quote][b]Jaya Chitra (9/23/2008)[/b][hr]Dear All,Thanks for you replies.I have the table which contains some properties of the document in my knowledge repository.The user can search by specifying any values to the properties.Based on the values in the properties the where criteria is framed and then I am sending this to the stored procedure.In the stored procedure I am framing the dynamic query with the where clause with the input where clause.The table has minimum more than 200000 documents.So I don't know how to make the index.I had a discussion and some were saying that I can have index for all the fields.Can any one tell me how to resolve this?Thanks a lot.[/quote]Study the clustered,nonclustered and covering indexes in BOL....Making a clustered index on the columns in where clause will improve performance</description><pubDate>Wed, 24 Sep 2008 04:50:20 GMT</pubDate><dc:creator>Sqlfrenzy</dc:creator></item><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>Can you post the proc, the table and the index defs? Are there certain columns that will be more frequently searched than others?</description><pubDate>Wed, 24 Sep 2008 01:08:17 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>Dear All,Thanks for you replies.I have the table which contains some properties of the document in my knowledge repository.The user can search by specifying any values to the properties.Based on the values in the properties the where criteria is framed and then I am sending this to the stored procedure.In the stored procedure I am framing the dynamic query with the where clause with the input where clause.The table has minimum more than 200000 documents.So I don't know how to make the index.I had a discussion and some were saying that I can have index for all the fields.Can any one tell me how to resolve this?Thanks a lot.</description><pubDate>Tue, 23 Sep 2008 21:46:24 GMT</pubDate><dc:creator>Jaya Chitra</dc:creator></item><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>It depends.  What other columns are being returned by the query?  What is the selectivity of the column(s) in the index?As a rule you should not place a separate single column index on every column in a table.  It creates more overhead than it is worth.  You need to analyze the queries of the database and then index appropriately.  A single composite index will likely be better (more selective) than 2 single column indexes and will reduce IO's.  FOr example a person search on last name and first name will be faster if the index is a composite index including the last name and first name columns than 2 indexes on last name and first name.</description><pubDate>Tue, 23 Sep 2008 08:54:36 GMT</pubDate><dc:creator>  Jack Corbett</dc:creator></item><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>You should not index ALL the fields. That will slow down your updates/inserts/deletes.You want to include indexes on those fields which are mostly used for queries. If you have two items in the WHERE clause, it depends. You can include both fields in the index, you can have separate indexes that might be used.Best bet is to get the execution plans for those queries often run and look to see if you are getting index seeks.</description><pubDate>Tue, 23 Sep 2008 08:50:43 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>If  your join condition matches with the index fields the query will also performs faster.It is not the index that imporve the performance.   You should look out at defragmentation aslo.  If the fragmentation is at the highest level the query also improves.</description><pubDate>Tue, 23 Sep 2008 07:43:32 GMT</pubDate><dc:creator>vyas</dc:creator></item><item><title>Index Vs Select criteria sequence</title><link>http://www.sqlservercentral.com/Forums/Topic574303-360-1.aspx</link><description>[b]Dear All,[/b]Can any one tell me the relation between the index fields and the query criteria sequence.I have created the index for all the fields in the database individually.If I am querying the database with by specifying two fields in the criteria field.What will happen, will the performance is increased or not?Kindly give me your suggestion.[b]Thanks a lot in advance.[/b] :)</description><pubDate>Tue, 23 Sep 2008 07:18:08 GMT</pubDate><dc:creator>Jaya Chitra</dc:creator></item></channel></rss>