Subject | Re: [firebird-support] Indexes or Tables? |
---|---|
Author | Helen Borrie |
Post date | 2004-10-26T13:09:30Z |
At 05:52 AM 26/10/2004 -0300, you wrote:
to play around with the query until the optimiser generates a plan that
works fast and looks like my plan.
,/hb
>Helen Borrie wrote:Well, you can include your own PLAN clause in the statement, but I prefer
>
> >When you are using status flags to select rows, it's usually necessary to
> >provide the classic workaround to low selectivity problems on indexes over
> >these flags: defining an index consisting of (Flag, PrimaryKey) and, if
> >the flags themselves are foreign keys, to adjust query plans to block use
> >of the FK index and enforce using of the user-defined one.
> >
> >./heLen
> >
> >
> >
>How do you enforce plans to use the user-defined index?
to play around with the query until the optimiser generates a plan that
works fast and looks like my plan.
,/hb