Subject | Re: [firebird-support] Index Selectivity maintenance |
---|---|
Author | Martijn Tonies |
Post date | 2004-03-09T14:56:46Z |
Hi Ian,
You have to do this for each index, but with the new EXECUTE
STATEMENT in a stored procedure, you don't even have to
write a client app for this :-)
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> I'm just wondering what is the best way to automaticallyUsing "SET STATISTICS" will do the same.
> recalculate the index selectivity. I know that a backup and restore
> will do this but I'm after doing it with no downtime about once a
> month.
>
> Is there any way to do a global selectivity recalculation through
> isql, gfix or similar?
You have to do this for each index, but with the new EXECUTE
STATEMENT in a stored procedure, you don't even have to
write a client app for this :-)
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com