Indexes question

  • Is it ok to apply indexes on all the columns involved in the WHERE clause of queries? Our database is a read-only VLDB database.

  • Other than the space needed by these indexes, I'm not assuming there will be any bad repercussions by adding them because there are no updates/deletes/inserts into this database.

    I'd really appreciate all the experts' advices.

  • If you mean putting single column indexes on every column, probably not.

    http://sqlinthewild.co.za/index.php/2010/09/14/one-wide-index-or-multiple-narrow-indexes/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • If your table is truly static and you have the space then add as many indexes as you need to cover the queries being issued. Go ahead and use a FILL_FACTOR of 100 (or 0) too. Another thing you can do to help performance is to move the table and its indexes to a new FILEGROUP and then mark the FILEGROUP as read-only.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply