Subject | Re: Slow query (unindexed reads) |
---|---|
Author | kerryneighbour |
Post date | 2011-06-22T11:59:51Z |
--- In firebird-support@yahoogroups.com, Milan TomeĀ - Position <tomes@...> wrote:
SELECT DISTINCT
LOCATIONITEMS.ID,
LOCATIONITEMS.ITEMID
FROM
LOCATIONITEMS
ORDER BY
LOCATIONITEMS.ITEMID
>Sorry - having a bad day!! It was a typo on my part. the more correct query is
> Hi,
>
> I cannot see index on ITEMNUMBER column in metadata you've posted. I see
> just ID and ITEMID.
>
SELECT DISTINCT
LOCATIONITEMS.ID,
LOCATIONITEMS.ITEMID
FROM
LOCATIONITEMS
ORDER BY
LOCATIONITEMS.ITEMID