Re: Foreign key indexes - to delete?

From: a (a_at_a)
Date: 09/26/04


Date: Sun, 26 Sep 2004 18:20:10 -0500

Here is the general rules of thumb I use on all tables:
1. Cluster the Primary Key (PK).
2. Verify FKs and Index them all.
3. Cluster another column instead it PK if performance/requirements indicate
that it would better serve as the clustered index. Then index the primary
key.
4. Actively manage index fragmentation and rate to validate index
FillFactor.
5. Actively manage index usage using Profiler, or other tools, to validate
existing and create new indexes.

Check these out for more informaiton:
http://www.sqlskills.com
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032254503&Culture=en-US
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032256511&Culture=en-US

Recently www.sqlmag.com had a decent article on scheduling sql traces, but
offhand I don't have the article number.

HTH

Jason Strate
j.s.strate@comcast.net
http://stratesql.blogspot.com
SQL Database Administator and Developer
Microsoft Certifed Professional

"sreckos" <sreckos@discussions.microsoft.com> wrote in message
news:DA3CE2D2-2228-45F3-8E38-C45F01FA6A03@microsoft.com...
> My Powerdesigner helps me design a SQL Server 7 database (approx. 100
tables)
> and automaticaly creates primary key index as well as indexes for all
foreign
> keys in each table.
> So I got a lot of indexes table and I am asking myself whether this is
> correct from performance point of view?
> Wouldn't be better to delete all foreign key indexes, then run Profiler
with
> application functions and define new indexes on the base of Profiler
results?
>
> Thanks for comments!



Relevant Pages

  • Re: Autonumber Fields
    ... Jet 4.0 and 3.5 cluster on the Primary Key and a ... Compact will keep it managed. ... SQL Server generally clusters on the Primary Key, however, you can select ... Recommending the AutoNumber as Primary Key without pointing out the dangers, ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Large Scale PHP Application Design Questions
    ... a single DBMS (use a sequence number and repository identifier (e.g. ... Most data has an implicit primary key. ... add more DBMS servers doing the same job. ... must be unique across all members of the cluster. ...
    (comp.lang.php)
  • Re: Large Scale PHP Application Design Questions
    ... table when designing relational databases. ... Most data has an implicit primary key. ... add more DBMS servers doing the same job. ... must be unique across all members of the cluster. ...
    (comp.lang.php)
  • Re: Clustered Index question
    ... If you cluster just on ... I'd still keep the primary key. ... Columnist, SQL Server Professional ... the database is the ones in the Stored Procedure, ...
    (microsoft.public.sqlserver.programming)
  • Re: How to determine Registry "root" for SQL Server instance?
    ... Did you run Profiler while doing the same in EM? ... you are on a cluster. ... >>> Tibor Karaszi, SQL Server MVP ...
    (microsoft.public.sqlserver.server)