Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 2:29 PM
Points: 299, Visits: 1,134
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
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 2:29 PM
Points: 299, Visits: 1,134
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 @ 9:13 AM
Points: 40,609, Visits: 37,070
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 2008, MVP
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: Yesterday @ 7:01 PM
Points: 7,139, Visits: 12,762
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