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 you SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Claytons Data Mining (Part 2)
Backup System Databases Using Maintenance Plans
Overview of Maintenance Plans in SQL Server 2008
Monitoring Index Fragmentation

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 >> Comparcion Entre Index Tuning Wizard 2000 y ...

Comparcion Entre Index Tuning Wizard 2000 y Database Tuning Advisor 2005 Beta

By : Luis Martin
Jun 01, 2005

Page 3 / 4

Posteriormente se ejecutó el DTA sugiriendo los siguientes índices con una mejora esperable de 78%.

CREATE NONCLUSTERED INDEX [IXC2005_TRANSAC_6_98099390__K10_K30_K81_K1_K2_K105_K3_K55] ON [dbo].[TRANSAC]

(

   [NROTRANSELIM] ASC,

   [CODSUC] ASC,

   [CODEMP] ASC,

   [NROTRANS] ASC,

   [FECHA] ASC,

   [NROTRANSCTRL] ASC,

   [CODCMP] ASC,

   [NROTRANSAUT] ASC

)

CREATE NONCLUSTERED INDEX [IXC2005_CMPASOCIADOS_6_437576597__K3_K1_K2_K8_K7] ON [dbo].[CMPASOCIADOS]

(

   [TALONARIO] ASC,

   [NROTRANS] ASC,

   [CODCMP] ASC,

   [NUMEROEXT] ASC,

   [PREFIJOEXT] ASC

)

En este punto comenzamos a observar algunas diferencias. Por un lado el porcentaje de mejora que con ITW es de 52%, con DTA es de 78%.

Por otro lado los índices sugeridos son notoriamente distintos.

Tomemos el caso de la tabla TRANSAC tomando los tres primeros campos. ITW sugiere el ordenamiento del índice por los campos: NroTrans, Fecha, Codcmp, mientras que DTA sugiere para la misma tabla: NroTranselim, CodSuc, CodEmp y sigue.

Lo mismo ocurre con la tabla CMPASOCIADOS, con ITW los tres primeros campos son: NroTrans, Codcmp, Talonario, mientras que DTA sugiere: Talonario, NroTrans, CodCmp.

Dado que la tarea de la investigación implica probar y analizar, aplicamos los índices sugeridos y obtenemos el siguiente plan de ejecución:

Las estadísticas obtenidas luego de la ejecución de la consulta con los nuevos índices es la siguiente:

Table 'CMPASOCIADOS'. Scan count 1, logical reads 619, physical reads 0, read-ahead reads 0.

Table 'TRANSAC'. Scan count 1, logical reads 1757, physical reads 0, read-ahead reads 16.

Table 'TIPOSCMP'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0.

Table 'TALONARIOS'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0.

(170259 row(s) affected)


<< Prev Page     Next 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