Subject | Re: Query plan again |
---|---|
Author | Christian Kaufmann |
Post date | 2004-10-07T08:25:32Z |
Hi Dmitry,
thank you for your explanation.
to run the query first and then run 25 queries to replace the left
join.
But I don't understand why the ORDER plan cannot be used in a LEFT
JOIN ? A LEFT JOIN isn't the same as an OUTER JOIN isn't it ?
Or maybe even a better solution is to insert dummy records with
PK_FIELD = 0 in such tables. I tried with the query. It's really the
"LEFT" join, that changes the plan.
cu Christian
thank you for your explanation.
> 1) Outer joins cannot use ORDER plan. And you cannot force usingIn my case, the speed difference is really huge, so I should consider
> ORDER even via an explicit plan. So your query should be very slow,
to run the query first and then run 25 queries to replace the left
join.
But I don't understand why the ORDER plan cannot be used in a LEFT
JOIN ? A LEFT JOIN isn't the same as an OUTER JOIN isn't it ?
Or maybe even a better solution is to insert dummy records with
PK_FIELD = 0 in such tables. I tried with the query. It's really the
"LEFT" join, that changes the plan.
cu Christian