Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Forcing Oracle to use an order in the from clause
amit srivastava wrote:
>
> Can you force Oracle to use a particular table order in the
> from clause? Esp. if you have outer joins in them?
>
> Thank you for any information.
> -amit
You can.
By default Oracle reads the last table in the FROM clause FIRST.
So when you optimize your queries make sure the order of the tables
listed in FROM consistent with their row number and overall size.
Also make sure that the most restrictive table is processed first..this
will reduce significantly the overall number of join rows that are
spooled in the memory/alternatively temp space.
Boris Received on Fri Apr 18 1997 - 00:00:00 CDT