Subject | Re: [firebird-support] Why there are always one natural file in query |
---|---|
Author | Helen Borrie |
Post date | 2004-09-10T13:09:12Z |
As I commented two days ago:
I had written:
against the FK indexes used by the plan, to observe a) their selectivity
and b) the length of the longest duplicated chain (Max Dup).
./helen
I had written:
> >2) there are good indexes on the right side (relative to the left side ofYou replied:
> >the join in each respective join) to use for the WHERE search..I'd want to
> >look at foreign key indexes to make sure they are decently selective and,
> >if not, I'd add an OR to avoid using that index
>Yes, the fields on the right side are all foreign key constraint againstSome foreign key indexes are terribly unselective. Try running gstat
>left side.
against the FK indexes used by the plan, to observe a) their selectivity
and b) the length of the longest duplicated chain (Max Dup).
./helen