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

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Indexes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cronus
Starting Member

1 Posts

Posted - 03/03/2014 :  23:31:32  Show Profile  Reply with Quote
I am building my first database and have a simple question about indexes.

At how many records in a table should you consider putting an index on the table?

I don't see the point in creating an index if you have two records, but I see it if you have a million. At what point (how many records) do you think there would be a difference in performance of the database?

Thanks in advance. Cheers
Steven

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2055 Posts

Posted - 03/04/2014 :  01:48:32  Show Profile  Visit jackv's Homepage  Reply with Quote
@cronus - finding the right number is a matter of estimating the balance between workload, type of activity, maintenace cost.And even then, the optimizer may decide not to use an index depending on cardinality estimates.
When you're designing the index strategy - consider the difference between clustered and non-clustered indexes - http://www.sqlserver-dba.com/2011/05/sql-server-non-clustered-index-checklist.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
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.03 seconds. Powered By: Snitz Forums 2000