Subject | Re: How to plan a query |
---|---|
Author | danyschaer |
Post date | 2008-12-04T23:32:32Z |
Thank you Alexandre;
But ...
same PLAN at that point (PROC NATURAL), but FIRTS is very fast and NEXT
is very slow.
The where clause of PROC is returning only 23 records. The problem
comes when I have to find the max(FECH) for each PROC in MOVI.
Dany
But ...
> The problem resides on PROC NATURAL, from what I understood from thePlease, compare both examples (called FIRST and NEXT); both uses the
> query, the outer query has no where clause, so there is nthing to do
> besides scan all records...
>
> If PROC table is huge, certainly, it would take time to execute.
>
same PLAN at that point (PROC NATURAL), but FIRTS is very fast and NEXT
is very slow.
The where clause of PROC is returning only 23 records. The problem
comes when I have to find the max(FECH) for each PROC in MOVI.
Dany