Atta,
Your AJI should be acting as a covering query. You original query in which you are looking for AJI access, should ideally involve all the defined columns for the same table in AJI as well.
If your query is like the below one -
<quote> Sel a,c,sum(e) from Tab_A group by 1,2 <unquote>
Then as per your AJI definition, it will choose AJI access path, instead of doing the whole aggregation once again.
However, if you are executing below query -
<quote> Sel a,z,sum(e) from Tab_A group by 1,2 <unquote>
Then, AJI will not be accessed.
Please also remember; to check whether you are using direct table or a view in your query!
HTH!
Charudatt
↧