set statistics io on, PERFORMANCE

05/05/2004 - 22:52 por Isaías | Informe spam
Tengo un Store que consulta una serie de tablas para sacar
información de mi base de datos y tengo una vista creada
en base al Store mencionado, simplemente, hago otro store
para cosultar la vista con un SELECT * FROM VIEW_ACADEMIA

De acuerdo a los siguientes estadisticos, ¿CUAL SERIA EL
DE MAYOR PERFORMANCE?

Gracias por los comentarios.

set statistics io on
EXEC pr_TVAGraficoAcademiaNEW
Table 'ALUMNO'. Scan count 2, logical reads 4, physical
reads 0, read-ahead reads 0.
Table 'FILE_14'. Scan count 2, logical reads 106, physical
reads 0, read-ahead reads 0.

EXEC pr_TVAGraficoAcademia

Table 'FILE_14'. Scan count 2, logical reads 8, physical
reads 0, read-ahead reads 0.
Table 'FILE_14'. Scan count 2, logical reads 6, physical
reads 0, read-ahead reads 0.
Table '#ACA_PASO'. Scan count 0, logical reads 13,
physical reads 0, read-ahead reads 0.
Table 'FILE_14'. Scan count 1, logical reads 53, physical
reads 0, read-ahead reads 0.
Table '#ACADEMIA'. Scan count 0, logical reads 12,
physical reads 0, read-ahead reads 0.
Table 'ALUMNO'. Scan count 1, logical reads 2, physical
reads 0, read-ahead reads 0.
Table '#ACADEMIA'. Scan count 1, logical reads 22,
physical reads 0, read-ahead reads 0.
Table '#ACA_PASO'. Scan count 11, logical reads 11,
physical reads 0, read-ahead reads 0.
Table '#ACADEMIA'. Scan count 1, logical reads 1, physical
reads 0, read-ahead reads 0.
Table '#ACADEMIA'. Scan count 1, logical reads 1, physical
reads 0, read-ahead reads 0.
 

Leer las respuestas

#1 Maxi
06/05/2004 - 01:21 | Informe spam
Hola, bueno esto es solo una parte no? aca estamos viendo IO y nada mas :(

En la primer consulta en total tenes 110 lecturas logicas mientras que en la
segunda hay 129 (si no hice mal la cuenta) ademas de que en el primer
tenemos menos Tablas y menos Table Scan claro y en el segundo mucho mas :-)

Suerte


Salu2

Maxi

Desarrollador 3 estrellas .NET
Buenos Aires - Argentina

MSN:

"Isaías" escribió en el mensaje
news:8fbe01c432e2$d794d6f0$
Tengo un Store que consulta una serie de tablas para sacar
información de mi base de datos y tengo una vista creada
en base al Store mencionado, simplemente, hago otro store
para cosultar la vista con un SELECT * FROM VIEW_ACADEMIA

De acuerdo a los siguientes estadisticos, ¿CUAL SERIA EL
DE MAYOR PERFORMANCE?

Gracias por los comentarios.

set statistics io on
EXEC pr_TVAGraficoAcademiaNEW
Table 'ALUMNO'. Scan count 2, logical reads 4, physical
reads 0, read-ahead reads 0.
Table 'FILE_14'. Scan count 2, logical reads 106, physical
reads 0, read-ahead reads 0.

EXEC pr_TVAGraficoAcademia

Table 'FILE_14'. Scan count 2, logical reads 8, physical
reads 0, read-ahead reads 0.
Table 'FILE_14'. Scan count 2, logical reads 6, physical
reads 0, read-ahead reads 0.
Table '#ACA_PASO'. Scan count 0, logical reads 13,
physical reads 0, read-ahead reads 0.
Table 'FILE_14'. Scan count 1, logical reads 53, physical
reads 0, read-ahead reads 0.
Table '#ACADEMIA'. Scan count 0, logical reads 12,
physical reads 0, read-ahead reads 0.
Table 'ALUMNO'. Scan count 1, logical reads 2, physical
reads 0, read-ahead reads 0.
Table '#ACADEMIA'. Scan count 1, logical reads 22,
physical reads 0, read-ahead reads 0.
Table '#ACA_PASO'. Scan count 11, logical reads 11,
physical reads 0, read-ahead reads 0.
Table '#ACADEMIA'. Scan count 1, logical reads 1, physical
reads 0, read-ahead reads 0.
Table '#ACADEMIA'. Scan count 1, logical reads 1, physical
reads 0, read-ahead reads 0.

Preguntas similares