Subject | Re: [Firebird-general] View uses table index? |
---|---|
Author | Christian Gütter |
Post date | 2003-05-20T15:18:40Z |
Hi Bob,
questions at the IB-Support list (also at Yahoogroups).
And yes, AFAIK indices are used when you select from a
view. (But it is always a good idea too look at the query
plan. Interbase 6.x and earlier Firebird versions have a
bug which sometimes occurs when you join a table and a
view. Then the index is ignored. I once stumbled over this
one.)
Cheers,
Christian
> I want to create a view that performs a join between a masterThis list is not for support questions. Please ask support
> and detail
> table in order to provide a total column.
>
> If I select from this view, will the indices from the
> underlying tables be
> used?
questions at the IB-Support list (also at Yahoogroups).
And yes, AFAIK indices are used when you select from a
view. (But it is always a good idea too look at the query
plan. Interbase 6.x and earlier Firebird versions have a
bug which sometimes occurs when you join a table and a
view. Then the index is ignored. I once stumbled over this
one.)
Cheers,
Christian