Subject | Re: Slow query (unindexed reads) |
---|---|
Author | kerryneighbour |
Post date | 2011-06-22T21:23:05Z |
--- In firebird-support@yahoogroups.com, Ann Harrison <aharrison@...> wrote:
It is very good to know about the fields being comparable....thanks for that gem!
>As long as the fields are comparable - meaning your not joining aWhich is why I pared down my query to no joins at all in my original post. A simple query that just lists the complete table. It still uses un-indexed reads.
> floating point number to a date - the optimizer should work on them.
> It may be that the order of the left joins leaves no opportunity to
> use the indexed terms. As you said, inner joins are much easier for
> the optimizer to handle.
It is very good to know about the fields being comparable....thanks for that gem!