I have a table A
and a table B
. A
has a foreign key to B
on B
's primary key, B_ID
.
For some reason (I know there are legitimate reasons) it is not using an index when I join these two tables on the key.
Do I need to separately create an index on A.B_ID
or should the existence of a foreign key provide that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…