Subject | Re: [firebird-support] Garbage clean |
---|---|
Author | Doru Constantin |
Post date | 2004-03-22T20:50:41Z |
Ann W. Harrison wrote:
Thank you Ann.
Doru.
[Non-text portions of this message have been removed]
> At 04:43 AM 3/21/2004, Doru Constantin wrote:This is a verry clean and easy to digest answer.
> >How:
> >
> >[code]
> > select count(*) from table_where_the_rows_was_deleted
> >[/code]
> >
> >can clean the garbage ?
>
> In a multi-versioning concurrency model, old versions of records must be
> kept until the end of the last transaction that was running before the
> update or delete was committed. Once that happens, the next transaction
> that encounters the deleted record will remove it.
>
> Count (*) visits all the records in a table, so running it after the
> deletion is committed and all other concurrent transaction have exited
> causes the garbage collection.
>
>
> Regards,
>
>
> Ann
Thank you Ann.
Doru.
[Non-text portions of this message have been removed]