Subject | Re: [ib-support] Speed problem |
---|---|
Author | lester@lsces.globalnet.co.uk |
Post date | 2001-09-04T09:20:30Z |
> >Some brackets missing and no 'PLAN'?Possible - but I did scroll up before copying.
>
> Seems complicated, but maybe one line with
> PLAN(PLAN(PLAN(PLAN(PLAN(PLAN(PLAN( just scrolled off the window?
> Your second plan seems simpler - and gave me one idea for possibleNeat!
> improvement:
> LEFT JOIN ROOMSTAT R ON R.TERMINAL = T.ROOM
> Does this give the right result, and is it any faster?
Plan is now simpler
PLAN (C3 INDEX (RDB$PRIMARY8))
PLAN (C2 INDEX (RDB$PRIMARY8))
PLAN (C1 INDEX (RDB$PRIMARY8))
PLAN SORT (JOIN ( T INDEX (RDB$PRIMARY8), R INDEX
((RDB$PRIMARY3)))
But if anything it now takes longer.
Using four queries linked by IBO's MasterParamLinks a ten
day report with 800 tickets takes 4 seconds for the preview
to come up.
The previous single query took 65 seconds, this one took 70
seconds to the same point. ( Opening the queries in IB_SQL
takes the same sort of time )
Where should I be asking for an explination into the
differences?
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services