Subject | Re: [firebird-support] Query optimization |
---|---|
Author | Tim Ledgerwood |
Post date | 2003-07-02T11:47:50Z |
Well, that's the plan the IB optimizer uses ... :-(
At 01:55 PM 07/02/2003 +0200, you wrote:
At 01:55 PM 07/02/2003 +0200, you wrote:
>What a dreadful plan, Tim![Non-text portions of this message have been removed]
>
>Assuming CODE is fairly selective, the following two indexes should help you:
>
>CREATE INDEX IDX_CLNT_SUB_CODE ON CLNT_SUB(CODE);
>CREATE INDEX IDX_CLIENT ON CLIENT(CODE);
>
>If not selective, add the PK to the end of the index.