Subject | Re: Query plans and joins |
---|---|
Author | flipmooooo |
Post date | 2006-01-10T13:42:15Z |
Hi Martijn,
A.*,
B.DESCRIPTION
FROM
TEST_DETAIL A
/*
LEFT JOIN
*/
INNER JOIN
TEST B
ON
B.ID = A.FID
ORDER BY
A.CODE,A.VNR
I added FIRST 1 to both queries and got the same results. The left
join is slow because it doesn't use UC_TEST_DETAIL_CODE_VNR and i
would like to know why?
Greetings,
Filip Moons
>Then don't ask for them "all at once" :-)SELECT FIRST 1
>Seriously, you're asking the server for a complete resultset which
>needs to be prepared.
A.*,
B.DESCRIPTION
FROM
TEST_DETAIL A
/*
LEFT JOIN
*/
INNER JOIN
TEST B
ON
B.ID = A.FID
ORDER BY
A.CODE,A.VNR
I added FIRST 1 to both queries and got the same results. The left
join is slow because it doesn't use UC_TEST_DETAIL_CODE_VNR and i
would like to know why?
>He sure does.U got his addy, mine seems offline a loooong time ago :)
Greetings,
Filip Moons