Re: Curious performance experiment
From: David Gugick (davidg-nospam_at_imceda.com)
Date: 11/04/04
- Next message: Dallara: "Could not find database ID 102. Database may not be activated yet or may be in transition."
- Previous message: David Gugick: "Re: VBSCRIPT in SQL Server Agent/Jobs"
- In reply to: JXStern: "Curious performance experiment"
- Next in thread: JXStern: "Re: Curious performance experiment"
- Reply: JXStern: "Re: Curious performance experiment"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Nov 2004 19:47:13 -0500
JXStern wrote:
> I found an SP scanning a table of 100k rows which lacked the proper
> index, doing a join to several other tables. Statistics IO reported
> it took 26000 logical reads (to do it twice, btw).
>
> I then added the proper index. Reads dropped to 1500. Good, huh? I
> should have declared victory and gone home.
>
> But no, not me. I then dropped the index and reran. It went up
> again, of course, but only to 6700 reads.
>
> Um, ... anyone ever see anything like this? I'm at something of a
> loss. I thought I'd run it several times in each mode, and in fact
> was running it in a loop of 100 from query analyzer to get a decent
> clock-time idea of execution (but got the statistics IO from single
> executions).
>
> Josh
What are these"reads"? Are you using STATISTS IO for the information? If
so, how many logical vs physical? You might consider using Profiler to
see the reads, CPU, and duration. Don't be alarmed that the reads in
Profiler do not match that of STATISTICS IO. They are reading different
structures and the SQL Trace API will normally report reads that are not
tracked by STATISTICS IO.
-- David Gugick Imceda Software www.imceda.com
- Next message: Dallara: "Could not find database ID 102. Database may not be activated yet or may be in transition."
- Previous message: David Gugick: "Re: VBSCRIPT in SQL Server Agent/Jobs"
- In reply to: JXStern: "Curious performance experiment"
- Next in thread: JXStern: "Re: Curious performance experiment"
- Reply: JXStern: "Re: Curious performance experiment"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|