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

Reindex daily Job.. Expand / Collapse
Author
Message
Posted Wednesday, September 19, 2012 2:45 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
1) How can I check the Fragmentation of the indexes.

2)How the scanDensity and Fragmentation are related?

Thanks
Post #1361628
Posted Wednesday, September 19, 2012 8:00 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, December 19, 2014 2:50 AM
Points: 126, Visits: 1,091
In SQL Server 2005 and later version, you can use sys.dm_db_index_physical_stats to query size and fragmentation information for the data and indexes. http://msdn.microsoft.com/zh-cn/library/ms188917.aspx

In SQL Server 2000, you could use DBCC SHOWCONTIG .http://msdn.microsoft.com/en-us/library/ms175008.aspx

The main effect of fragmentation is that it slows down page read-ahead throughput during index scans. This causes slower response times.(When you query a fragmentated tables, SQL engine need scan more pages, after
defragmentation, it will scan less pages which reduce I/O and memory utilization).


[li][/li]
Post #1361705
Posted Tuesday, September 25, 2012 7:11 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 5:56 AM
Points: 7,140, Visits: 12,764
If you have found fragmentation or low scan density and you want to run a daily job to remediate it I would recommend looking into this:

http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1364019
Posted Friday, September 28, 2012 11:01 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
How are the missing indexes created on the table?
on our Prod server, we see a quite few number of missing indexes created.
Post #1366024
Posted Friday, September 28, 2012 11:08 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 5:56 AM
Points: 7,140, Visits: 12,764
Ola's solution does not do that. Honestly you do not want anything automatically creating missing indexes. If you're referring to what's in the DMV or what the Database Tuning Advisor produces as suggestions you might notice that there is a lot of leading column duplication in their suggestions. You want to analyze the suggestions, determine the weight advantage of each option and maybe even after rolling them up into one covering index, and then test your queries before implementing anything.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1366027
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse