Subject | Re: [firebird-support] How does sweeping works? |
---|---|
Author | Ann W. Harrison |
Post date | 2009-08-27T13:57:26Z |
Daniel Vogelbacher wrote:
nightly backup. Backup also reads every record and removes
old record versions. Then run a sweep after the backup to
reset the oldest interested transaction id.
By the way, in an earlier message I said that only writers
perform garbage collection. I was either asleep, on drugs,
or confusing the strategies of other databases. In cooperative
garbage collection, every transaction that looks at a record
will remove old versions, readers as well as writers. And
removing old versions includes removing the stub created when
a record is deleted.
Cheers,
Ann
> In one of your last mails you wrote that sweep invokes GC.It might be more useful (and almost as effective) to run a
> If I run a manual sweep every night, the select query
> should run fast, isn't it?
>
nightly backup. Backup also reads every record and removes
old record versions. Then run a sweep after the backup to
reset the oldest interested transaction id.
By the way, in an earlier message I said that only writers
perform garbage collection. I was either asleep, on drugs,
or confusing the strategies of other databases. In cooperative
garbage collection, every transaction that looks at a record
will remove old versions, readers as well as writers. And
removing old versions includes removing the stub created when
a record is deleted.
Cheers,
Ann