Subject | Re: My query plan does not use correct index |
---|---|
Author | chris.waldmann |
Post date | 2011-08-18T12:08:43Z |
> It seems that if i removed the "order by" clause, the query works very fast. So it must be that order by part that consumes all the performance. Any idea how to fix this?Have you tried with single field index in the requested sort order for each field in the order clause?
>
> Regards,
> Reynaldi
>
For this the following are missing:
Table A
(POSTDATE) Descending
(OBJID) Descending
Table B
(CALCTYP) Descending
and the combined can be dropped.
HTH
Chris