Groups | Blog | Home
all groups > sql server clients > march 2005 >

sql server clients : Statistics


John
3/24/2005 2:05:07 PM
Can any one let me know after executing the Statistics of stored procedure I
got the following information, can any one tell me which column and which
value I have to check for optimization and fine tunning point of view.

Duration CPU Reads Writes
0 0 0 0
0 0 18 0
0 0 0 0
0 0 18 0
0 0 18 0
0 0 0 0
0 0 18 0
10 10 124 0
20 20 128 0
0 0 0 0

Thanks in advance.

John
3/24/2005 9:29:36 PM
Thanks John thanks for your reply but after that value I have to think over
the optimization and index tunning stuff, I mean any bottleneck value.

Thanks and have a great weekend.


[quoted text, click to view]

John
3/24/2005 9:33:06 PM
I mean after what value of I/O and duration I have to think over the
optimization and index tunning stuff, I mean any bottleneck value.


[quoted text, click to view]

John Bell
3/25/2005 12:14:48 AM
Hi

Duration is the most obvious as this is the length of time (milliseconds) it
takes to execute, but then large amounts of I/O may mean poor indexes/code.
If you also choose to see the statements within the stored procedure you can
pinpoint the statements what that are the worst offenders. You can then
start to look at query plans or re-writing them.


John

[quoted text, click to view]

John Bell
3/25/2005 2:29:12 AM
Hi

The value will depend on what work is being done therefore you can't
really give a definite fixed value. Also if your system may have to
meet performance parameters, therefore any query over a certain
duration may need to be targetted.

If you are looking at impact driven analysis, then you need to look at
a cumulative time taken which would target slow running procedures and
procedures that are called often. If you have a profile of "normal"
activity that is taken over a significant length of time, you can load
it into a database table (using the save option in profiler) and pick
out the problem areas.

You may want to look at the links and investing in the books listed on
http://tinyurl.com/476ly

For query plans there is some information in Books online, you may also
want to purchase "Inside SQL Server 2000" by Kalen Delany ISBN
0-7356-0998-5

John

[quoted text, click to view]
AddThis Social Bookmark Button