| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Tuning a large order by clause
jwilliam_at_aglresources.com (James A. Williams) wrote in message news:<5003a2b9.0111131147.853a06e_at_posting.google.com>...
> The below query builds an aggregate table. The below order by causes a
> massive scan. I tried a composite index over the order by. I removed
> everything on the order by except for the account_id which has a
> single e-mail. I get a subsecond response.
>
> Can such an order by be tuned. Its traversing a million rows so the
> tempfiles are being hit.
You could try to reduce tempfile usage by using PQ. Every process has it's own sort_area.
Ronald.
![]() |
![]() |