Take this log vomitting sql as an example;
declare @i int
select @i=0
while @i <5000
begin
select @i=@i+1
print 'Count %1!',@i
end
this took 23 seconds to run with the log visible with aseisql
2007-11-19.
delaying repaints and scrolling for 1/30th of a second so the log can
fill up more before repainting, and it now takes 3 seconds.
Now right click and copy all the log to the clipboard. This took about
25 seconds.
Using blobedit to append strings into a blob instead of string +=,
took 1.5 seconds.
The time taken for += increases exponentially as the string gets
larger, while the time for blobedit will only increase linearly.
These changes are more noticable the longer the log window gets, and I
have used a very long example here to highlight the differences.
But query plans can get pretty long too.