Subject | Re: [firebird-support] Acsending or Descending Index |
---|---|
Author | Ann Harrison |
Post date | 2012-01-24T18:01:45Z |
Stephane,
for MIN (ascending index) or MAX (descending index).
Ignoring the issues of Nulls, a descending index is identical to an
ascending index except that the keys are inverted. Nulls are
complicated in both directions.
Good luck,
Ann
>No difference. The direction of the index matters for ORDER BY and
> Without the consideration of the order by, i there any difference
> between ascending and descending index for queries like
>
> select ... where fieldA > 123;
> select ... where fieldA = 123;
> select ... where fieldA < 123;
for MIN (ascending index) or MAX (descending index).
Ignoring the issues of Nulls, a descending index is identical to an
ascending index except that the keys are inverted. Nulls are
complicated in both directions.
Good luck,
Ann