Database Tuning (MOSC)

MOSC Banner

Why no single pass on a join between two tables with same PK

edited Dec 24, 2019 5:46PM in Database Tuning (MOSC) 7 commentsAnswered ✓

Query plan execution conundrum:

Table A, 1M rows, PK on column A1.

Table B, 1T rows, PK on column B1.

Join A to B on A1=B1 to get matching rows in B.

PK index on A1 & B1.

Why wouldn't Oracle do this w/ONE pass on both tables using PK indexes? Work area size issue? Why would we need even 100M of PGA?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center