Subject | Re: [firebird-support] Firebird 3 - Auto Garbage collection with Sweep interval = 0 |
---|---|
Author | Norman Dunbar |
Post date | 2018-02-16T17:46:14Z |
Evening Arnaldo,
On 15/02/18 13:19, Arnaldo Caliari arnaldo.caliari@...
[firebird-support] wrote:
Oldest snapshot transaction (OST) - Oldest Interesting Transaction (OIT)
exceeds a non-zero setting for the sweep interval. In the header
information, this is Oldest Snapshot minus Oldest Transaction.
Setting sweep interval to zero disables this automatic sweep. However,
are you aware that when a transaction visits a table, it clears out
'garbage' left behind by other previous transactions?
Also, when you backup the database, your garbage is/can be collected too.
HTH
Cheers,
Norm.
--
Norman Dunbar
Dunbar IT Consultants Ltd
Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG
Company Number: 05132767
On 15/02/18 13:19, Arnaldo Caliari arnaldo.caliari@...
[firebird-support] wrote:
> Hi guys,Welcome to my world! ;-)
>
> maybe i have always misunderstood the garbage collection mechanism, the
> sweep interval, etc.. and i'm realising only now, but:
> I have this database (Firebird 3.03 SuperServer x64)Sweep interval is for an automatic sweep which gets carried out when the
> Sweep interval: 0
> ...
>
> My question is : why garbage collection mechanism starts automatically
> when i browse these tables, despite the fact that i have Sweep Interval
> = 0 ? What is the point that i'm missing ?
Oldest snapshot transaction (OST) - Oldest Interesting Transaction (OIT)
exceeds a non-zero setting for the sweep interval. In the header
information, this is Oldest Snapshot minus Oldest Transaction.
Setting sweep interval to zero disables this automatic sweep. However,
are you aware that when a transaction visits a table, it clears out
'garbage' left behind by other previous transactions?
Also, when you backup the database, your garbage is/can be collected too.
HTH
Cheers,
Norm.
--
Norman Dunbar
Dunbar IT Consultants Ltd
Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG
Company Number: 05132767