hints on views [message #148040] |
Tue, 22 November 2005 07:43 |
alka205
Messages: 18 Registered: August 2005
|
Junior Member |
|
|
All
I have a query which is select statement
SELECT A.c1, TO_CHAR(A.c2,'YYYY-MM-DD'), A.c3, A.c4, A.c5, B.c1, A.c6, A.c7
FROM table1 A, view1 A1, table2 B, view2 B1
view1 : select ....... from table3,table4,table5
view2 : select ....... from table6, table7, table8
If I do explain plan of my query on test box,
there is a hash join between table3 and table6 (which makes query run faster).
same query on other box run very slow, because there is a nested loop, no hash join.
How do i give a hint to use hash join in views.
Please help
|
|
|
|
|
|
Re: hints on views [message #149194 is a reply to message #148040] |
Wed, 30 November 2005 08:53 |
smartin
Messages: 1803 Registered: March 2005 Location: Jacksonville, Florida
|
Senior Member |
|
|
I would think that nope, by definition, everything is not the same. Look for some difference, as it must be out there.
|
|
|