Subject | Re: Firebird Plan Analyzer |
---|---|
Author | kick_tisho |
Post date | 2005-05-13T11:49:59Z |
> Well, yes, maybe this isn't the solution in your case. In theory,that
> could at worst mean more than a million if-elses But I doubt thatall
> 20 parametres are used equally much by themselves and that all ofthem
> would benefit from using an index. Maybe you can cut down thenumber
> of likely alternatives to just a few making this a feasiblesolution,
> and maybe not. If feasible, all unlikely alternatives could gointo a
> separate statement that never used any index (like your proceduresFor now i'm wondering if to use this or to build the query
> currently do).
>
> Set
dynaically in the procedure with the
FOR EXECUTE STATEMENT :STMT INTO :PERSONID DO
SUSPEND;