Subject | Re: [firebird-support] union performance |
---|---|
Author | Ann W. Harrison |
Post date | 2008-11-25T19:24:12Z |
Milan Babuskov wrote:
that keeps it from walking an index?
Best,
Ann
> Sergio H. Gonzalez wrote:How could firebird use an index with no WHERE clause and a UNION
>> select ID,descripcion from STOCK
>> union ALL
>> select id,razon_social from proveedores
>> order by 1
>>
>> PLAN (STOCK NATURAL)
>> PLAN (PROVEEDORES NATURAL)
>
> NATURAL means that no index is used. Do you have index on stock.ID or
> preoveedores.ID ?
>
that keeps it from walking an index?
Best,
Ann