Site sponsored by: Idera The gold standard of SQL Server performance monitoring & diagnostics.
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
Developer
General DBA
ASP.NET / ADO.NET

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

System Data Collection Reports
Recover Data Using Database Snapshots
Analyze and Fix Index Fragmentation in SQL Server 2008
Powerful Geographical Visualisations made easy with SQL 2008 Spatial (Part 2) ...

More     
 
Latest FAQ's

How to alter a User Defined Data Type?
How to unzip a File in SSIS?
How to view previous query plans?
ALTER TABLE SWITCH statement failed because the object '%.*ls' is not ...

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

articles >> performance tuning >> Eliminación de Índices no Usados

Eliminación de Índices no Usados

By : Luis Martin
Mar 30, 2005

Page 4 / 4

     if len(@Uso) = 4

     begin

   select @Uso = '0' + @Uso

     end

     Print @Uso + '    ' + @Indice

fetch next from IndicesUsados into @Base, @Tabla, @Indice,@Uso

continue

end

close IndicesUsados

deallocate IndicesUsados

GO

Una vez ejecutada se obtiene el siguiente reporte, como ejemplo:

BASE: EJEMPLO

TABLA: [dbo].[APLICACIONES]

INDICES:

79.20[IXCY04.05.03_APLICACIONES_NroTransegr_NroTrans_RefVto]

33.30[IXCY04.05.03_APLICACIONES_Aplicaciones_NroTransegr_RefVto_NroTrans_FechaVto_Importe]

20.50  [IXC03.11.24_APLICACIONES_NroTransegr_AplNrotrans_AplRefvto]

02.10  [IXCP03.11.12_APLICACIONES_Nrotrans_NroTransegr_Importe_FechaVto_AplrefVto]

100.00[IXC04.05.27_APLICACIONES_NroTrans_NroTranselim_AplNroTrans_FechaVto_AplRefvto]

00.10  [IXC04.05.27_APLICACIONES_AplNrotrans]

00.10[IXCY04.05.07_APLICACIONES_AplNrotrans_AplRefvto_FechaVto_NroTrans_NroTransing]

TABLA: [dbo].[AWItemsAcumHistoricos]

INDICES:

00.10[IXC03.05.16_AWItemsAcumHistoricos_CodItm_Fecha]

TABLA: [dbo].[BANCOSCOD]

INDICES:

100.00[IXCY04.05.14_BANCOSCOD_CodBan_Descripcion]

Ambos resultados son importantes.

El primero, porque nos informa cuales son los índices candidatos a ser eliminados, y el segundo porque podríamos considerar eliminar algún índice con muy bajo uso y, por ejemplo, con mucho espacio utilizado.

Resumen

Una vez eliminados lo índices sin uso, será necesario controlar la perfomance y consultar a los usuarios, para asegurarnos que la eliminación de alguno de ellos no haya perjudicado alguna función de uso no habitual o esporádica.


<< Prev Page         








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved