Subject | Re: Controlling expansion of database file / grow-by option? |
---|---|
Author | Ian A. Newby |
Post date | 2005-06-01T08:31:21Z |
Hi David,
CREATE PROCEDURE SYS_RECALC_SELECTIVITY
AS
DECLARE VARIABLE INDEXNAME CHAR(31);
begin
for select rdb$index_name from rdb$indices into :indexname do
begin
execute statement 'set statistics index ' || :indexname;
end
end
This is the one I do. Run it occasionally as you see fit.
Regards
Ian Newby
> I'm not familiar with updating index stats. Is that featureAs you're using 1.5 you can write a stored procedure to do it...
> available through ODBC... or do I need to use the services API?
CREATE PROCEDURE SYS_RECALC_SELECTIVITY
AS
DECLARE VARIABLE INDEXNAME CHAR(31);
begin
for select rdb$index_name from rdb$indices into :indexname do
begin
execute statement 'set statistics index ' || :indexname;
end
end
This is the one I do. Run it occasionally as you see fit.
Regards
Ian Newby