Subject | Re: [firebird-support] SET STATISTICS |
---|---|
Author | Woody |
Post date | 2007-01-30T18:06:15Z |
From: "Alexandre Benson Smith" <iblist@...>
statistics are usually accurate on them? I am wanting to create a script
that would run once a week to reset statistics on indexes and I have been
wondering if I need to do the same to PKs, etc. by issuing the set
statistics command.
Woody (TMW)
>Speaking of these, are these indexes kept up with in any way so that
> Set statistics will recompute the index selectivity.
>
> Alter index INDEX_NAME INACTIVE;
> Alter index INDEX_NAME ACTIVE;
>
> Will rebuild the index.
>
> Note that you cannot make an index created by a constraint (PK, FK,
> Unique) inactive.
statistics are usually accurate on them? I am wanting to create a script
that would run once a week to reset statistics on indexes and I have been
wondering if I need to do the same to PKs, etc. by issuing the set
statistics command.
Woody (TMW)