Archives of the TeradataForum
Message Posted: Wed, 13 Feb 2003 @ 00:20:23 GMT
First thing, try running an Explain on the DML (less the 'CREATE JOIN INDEX JoinIndex1 ,NO FALLBACK AS' part) used to create the AJI. Verify that the Optimizer uses your AJI to resolve this query (it should.)
Second thing, try adding secondary indexes (or at least collect some stats) on the columns from the AJI that you are filtering on. It seems that the optimizer (given the information that it has) believes that actually joining these tables together is better than using the AJI.
Third, the 5 step of your explain plan show a filter of ' ("(DatabaseName.Table1.Column12 = 701)); however, you SQL shows ' Table1.Column12 = 999'. Is this just a typo?
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|