Subject RE: [firebird-support] Stored Procedures ordering perfomance
look, if you order by string column (VARCHAR or so) and you are using
national charset then you may be in trouble as index may not be used.


-----Original Message-----
From: Adomas Urbanavicius [mailto:adomas@...]
Sent: 23. nóvember 2004 08:28
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] Stored Procedures ordering perfomance


Daniel Rail wrote:

>Hi,
>
>At November 22, 2004, 09:10, Adomas Urbanavicius wrote:
>
>
>
>>The point is , that procedure itself does more reads, than is
expected.
>>For example proc P1 :
>> After I called P1, apears dataset DP1 with count reads from
tables
>>for example 100.000, and result rows =10;
>>If I wish to order it (select * from P1 order by xxx ), it should
order
>>dataset DP1, and reads should remain 100.000.
>>
>>
>
>
>
>
>>But instead it creates dataset DP2 , with reads > 250.000 !
>>This is the point, that stored procedure with order by clause
causes big
>>OVERHEAD, and there is no escape from that.
>>
>>
>
>Which tool are you suing to get these statistics?
>And, do you notice a difference in performance(time wise) between
the
>two(without looking at those numbers)?
>
>If I'm not mistaken, those statistic numbers that you are stating
are
>not returned by the server, but are calculated by the tool you are
>using.
>
>
>
Well, in time also there is difference, and tool I have used for
test:
IBAdmin, DBWorkbench, EMS IB Manager (all results same)


Adomas


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=129i6j7n2/M=298184.5584357.6650215.3001176/D=gro
ups/S=1705115386:HM/EXP=1101284915/A=2434970/R=0/SIG=11edksnhv/*http://www.ne
tflix.com/Default?mqso=60185402>

<http://us.adserver.yahoo.com/l?M=298184.5584357.6650215.3001176/D=groups/S=:
HM/A=2434970/rand=316389388>


_____

Yahoo! Groups Links


* To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/

* To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
<mailto:firebird-support-unsubscribe@yahoogroups.com?subject=Unsubscribe>

* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]