This content has been marked as final.
Show 2 replies
-
1. Re: Performance Issue after joining with TEMP table
shawkins Oct 18, 2012 3:10 PM (in response to tanmoypalit)Tanmoy,
You'll want to use a hint MAKEDEP or MAKEIND to push the temp table values via a dependent join:
{code}SELECT * FROM VT_LIST AS X, /*+ MAKEDEP */ XXX_STATISTICS WHERE XXX_View.XXX_STATISTICS.INDEX_IDENTIFIER = X.INDEX{code}
There is a soft spot in optimization when using temp tables in a procedure. We precompile the procedure plan so at the time we're planning the join, even with just a single value being inserted, the optimizer does not know to automatically use a dependent join.
Steve
-
2. Re: Performance Issue after joining with TEMP table
tanmoypalit Oct 18, 2012 3:15 PM (in response to shawkins)Thanks Steven!!
This works great.
Regards
Tanmoy Palit