Subject | Re: [ib-support] Select joined with a view is slow |
---|---|
Author | Svein Erling Tysvær |
Post date | 2002-07-02T07:03:52Z |
Mark,
left join for the people table, so it will match every occurence. I don't
know if it will help any, but changing to
select v_peoplepicturescount.*
from people sel_people
join v_peoplepicturescount on v_peoplepicturescount.pid=sel_people.pid
should yield the same result.
Set
>select v_peoplepicturescount.*why do you do a left (outer) join here? The view itself already contains a
>from people sel_people
>left join v_peoplepicturescount on v_peoplepicturescount.pid=sel_people.pid
left join for the people table, so it will match every occurence. I don't
know if it will help any, but changing to
select v_peoplepicturescount.*
from people sel_people
join v_peoplepicturescount on v_peoplepicturescount.pid=sel_people.pid
should yield the same result.
Set