Subject | RE: RE: RE: [firebird-support] Re: Possible to write this in a way that indices will be used |
---|---|
Author | Maya Opperman |
Post date | 2008-05-19T10:56:04Z |
>Set Wrote:as if the best plan had been chosen depending >on the parameters.
>However, if I specify the plan:
>
>Select <whatever>
>From tablea a
>Where a.VerySelectiveField between :fromvalue1 and :tovalue1
> And a.AlmostAsSelectiveField between :fromvalue2 and :tovalue2
>PLAN (A INDEX(IndexVerySelectiveField, IndexAlmostAsSelectiveField))
>
>then the performance is decent in both cases, although not as excellent
Sounds good. To help me understand better, what exactly am I telling FB
to do here though? Use both indexes simultaneously?