Over the next few days we are going to start the migration to a new forum application. I'm going to start with high post count and active users. You may receive an invitation to the new forums. It's not spam. It's just me trying to seed the user base. My goal is to open it up over the weekend.

Once we open the site we'll block registrations here. We should be open shortly on the new site.

SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 non clustered index in table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

135 Posts

Posted - 10/05/2012 :  04:53:58  Show Profile  Reply with Quote
i am having table Table1 with 3 columns, c1,c2 and c3. Table1 having duplicate entrys of all those columns init. i am doing selection from this table which holds million of records. How to fast up the query?
is it make sense to create non-clustered index in it? because the table already having duplicate rows and colums.


Flowing Fount of Yak Knowledge

5155 Posts

Posted - 10/05/2012 :  07:03:11  Show Profile  Reply with Quote
Creating an index would help even if there are some duplicates. How much it would help depends on the so-called selectivity. For example, if a column had the same value in all rows, an index on that column is not going to help.

Does the table have a primary key and is that column(s) involved in the query?

If you can post the query along with the schema of the table, people on the forum would be able to offer more concrete suggestions.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000