Subject | RE: [Firebird-Architect] FW: Recomputing index statistics and stored procedures |
---|---|
Author | Leyne, Sean |
Post date | 2005-06-22T21:45:55Z |
Ann,
If the statistics for an index were to be recalculated, then it would
seem appropriate to 'mark' the SPs which reference the table as 'dirty'
to have the system recalculate the plan at the next appropriate
invocation.
Sean
> >> When a stored procedure or trigger is compiled, are the plans forits
> queries chosen at that time?statistics.
> >> If so, they should be recompiled after recomputing index
> >>In that case, does anyone know how to recompile all storedprocedures
> and triggersWith a view towards the future...
> [snip]
> I thought that the plans were chosen when the procedure was first
> invoked and retained by the server until the database is closed.
> And I don't know of a way to force a recompilation except to alter the
> procedure to itself.
If the statistics for an index were to be recalculated, then it would
seem appropriate to 'mark' the SPs which reference the table as 'dirty'
to have the system recalculate the plan at the next appropriate
invocation.
Sean