Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3351442
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:54:33+00:00 2026-05-18T01:54:33+00:00

I am in the middle of optimizing the indexes in an SQL Server 2008

  • 0

I am in the middle of optimizing the indexes in an SQL Server 2008 DB I’m working on. Right now I’m on the “central” table.

This table is joined on 7 columns. It also has a primary key (of course), plus a datestamp that I indexed in DESC order. Due to the nature of the joins, I believe 6 indexes is required (some of the joins are to tables of ultra low cardinality or won’t be queried).

However, this table is heavily written to. Performance is going to be poor with 6 indexes (and 1 is a 2-column index). Queries could be run against most of the joined tables, so I don’t see how I can drop any indexes.

Does anyone know of a best practice in determining how to balance the number of indexes?

Update:

Here are the columns of interest in the table:

MentionID       int             primary key
ParentID         int             indexed
ProfileID       int             indexed
SourceCategoryID tinyint         indexed with next column
SourceID         int
RoleplayerID     int             indexed
DateStamp       smalldatetime   indexed DESC
Subject       nvarchar(1000)
KeyMessage     nvarchar(1000)
SentimentID   tinyint         unindexed: low cardinality
ScopeID       tinyint         unindexed: low cardinality
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:54:33+00:00Added an answer on May 18, 2026 at 1:54 am

    Only one "best practice": try and measure, measure, measure and measure again.

    There is no theoretical way to know how these additional indices will affect your performance – you need to try and see.

    One approach that might help is described in great detail by Kimberly Tripp in hear blog post, Spring cleaning your indexes. It doesn’t really give you much rules how to know how many indices to use – but it gives you methods and hints how to find out which indices might not be used at all – those can be tossed to speed up your processing.

    On the flip side: SQL Server also has a DMV to tell you which indices it thinks would be beneficial and would help speed up your queries – inspect that DMV from time to time to see what the SQL Server query optimizer would like to have added; if that aligns with the indices you were about to create, you’re probably on the right track!

    • Are you using SQL’s Missing Index DMVs?
    • SQL Server – Find missing and unused indexes
    • Identify Missing Indexes Using SQL Server DMVs
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the middle of some work and suddenly I get this. Warning: require(/opt/lampp/htdocs/ERP/laravel/÷5
I’m working on optimizing some of my queries and I have a query that
We are in middle of optimizing memory usage of a massively multithreaded Java application.
In the middle of upgrading my working copy from 1.6 to 1.7 I had
Middle-tier component will execute the data access routines in application. The component will call
I am in the middle of creating a simple/quick translator that just translated selected
I'm in the middle of a project for my Comp Science project for monday,
I am in the middle of making an app using a PHP web service
I am in middle of R & D that I need to open any
I am in the middle of a software development class and am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.