Subject | Re: [firebird-support] Re: Why does this query take forever in FB?!?! |
---|---|
Author | Jerome Bouvattier |
Post date | 2004-05-07T12:25:46Z |
heLen,
with limited sub-selects even more efficient (close to an explicit IN with
hardcoded values, provided the sub-select can use index of course). For the
cases where the sub-select potentially returns "too big" resultsets, then
you still have WHERE EXISTS().
Am I missing something ?
--
Jerome
> If you are talking about Firebird here, not IB, then IN (<select list>)It
> resolves to a WHERE EXISTS(), which does use an index, if there is one.
> doesn't form an IN() list and it doesn't do an item-by-itemI understand, but the change Arno's speaking about would make statements
> comparison. That makes it very efficient for the kind of search IN()
> should be used for (WHERE-limited sets of up to a few hundred members) and
> potentially still slow if you apply it to a huge set.
with limited sub-selects even more efficient (close to an explicit IN with
hardcoded values, provided the sub-select can use index of course). For the
cases where the sub-select potentially returns "too big" resultsets, then
you still have WHERE EXISTS().
Am I missing something ?
--
Jerome