All Forums Analytics
Sankalp.C 45 posts Joined 08/13
11 Dec 2013
join indices

Suppose, I had a join qry which is using join indices currently. Incase I change the joining column the it might not use join indices. Is there any way to force join indices?

M.Saeed Khurram 544 posts Joined 09/12
11 Dec 2013

Hi Sankalp,
I do not beleive that a query can be forced to use join index, as the use of join index is a processing decision made by the optimizer  based on statistics. The only way is to collect the statistcs as required and keep them updated. This way optimizer will be better able ti use index joins in query execution.


Raja_KT 1246 posts Joined 07/09
11 Dec 2013

Hi Sankalp,


We make join table for a purpose(s) especially performance to serve business reqt.It can be Join of large table with another one to get only reqd fields, frequently accessed queries etc.


It is all upto the Optimizer even if it tries to use a cover index. Run  your query and see the explain. 





Raja K Thaw
My wiki:
Street Children suffer not by their fault. We can help them if we want.

Sankalp.C 45 posts Joined 08/13
12 Dec 2013

Thanks! Saeed.
Thanks! Raja.

You must sign in to leave a comment.