Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Indexes question Expand / Collapse
Author
Message
Posted Wednesday, September 12, 2012 1:56 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, July 14, 2016 2:09 PM
Points: 317, Visits: 1,344
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.
Post #1358198
Posted Wednesday, September 12, 2012 3:24 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, July 14, 2016 2:09 PM
Points: 317, Visits: 1,344
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.
Post #1358234
Posted Wednesday, September 12, 2012 3:45 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:02 AM
Points: 45,302, Visits: 43,527
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

Post #1358240
Posted Wednesday, September 19, 2012 2:44 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Wednesday, September 21, 2016 3:34 AM
Points: 7,932, Visits: 14,333
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
Post #1361627
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse