Subject | Re: [Firebird-Architect] "Adapted" PLAN for parametrized LIKE queries |
---|---|
Author | Alex Peshkoff |
Post date | 2012-03-14T13:22:07Z |
On 03/14/12 17:11, Dmitry Yemanov wrote:
information about distribution on index values this problem will take
place not only for LIKE) some intermediate state of optimizer and
perform final steps later when request is executed? I understand well
that's not for 3.0 or we will never have a release.
>> But looks like in the worst caseSuppose in real cases it will be so.
>> all plan can change depending upon use or not index in one place.
> This could be a problem if such conditional retrievals are used inside
> joins
> etc, especially if the predicate is a part of the relationshipProbably we may keep as a plan for such queries (if someday we have
> condition. We cannot estimate the cost properly at the prepare time. Of
> course we could suppose the worst case or use some average cost, but
> it's still something sub-optimal. More brainstorming is required here.
information about distribution on index values this problem will take
place not only for LIKE) some intermediate state of optimizer and
perform final steps later when request is executed? I understand well
that's not for 3.0 or we will never have a release.