Subject Re: [firebird-support] garbage collect
Author Ann Harrison

On Apr 5, 2015, at 11:23 AM, Nick Upson nu@... [firebird-support] <> wrote:

is there any effective difference between doing "gbak with gc" and 
"gbak without gc" and then "gfix -sweep"

The only differences (that I can think of) are caused by concurrent actions. If you garbage collect during backup, the sweep can remove new garbage created while the backup ran. 

Imagine that garbage collection takes enough time for fine thousand transactions to complete and each of those transactions makes three record versions obsolete. Neither gbak nor sweep can remove record versions made obsolete by the completion of a concurrent transaction. 

So if you backup without garbage collection, your backup is quicker, sweep starts sooner and takes longer so those 15,000 old record versions continue moldering in your database. 

If you backup with garbage collection and then sweep, the backup is slower, but the sweep starts later and can remove those unlovable record versions.  Sort of a wash, rinse, repeat thing - if that phrase means anything to those who aren't elderly 


From sunny Sint Maarten.