Subject | Re: Daily Maintenance Task for Firebird |
---|---|
Author | Chooi-Ting |
Post date | 2003-09-08T07:23:58Z |
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
Without -g switch..the backup will take longer time to complete and
the performance of the database will be effected.
chooi
wrote:
> At 01:45 AM 8/09/2003 +0000, you wrote:to
> >Hi,
> >
> >Just want to check out what are the daily maintenance tasks needed
> >maintain firebird database. Currently I am running 'gbak -B -g'garbage
> >database once a day, and alter index inactive/active. Are them good
> >enough to maintain the performance of the database ?
>
> Not really. One of the purposes of regular backups is to clear out
> that is left behind by the GC thread and sweeps. The -g switchdisables
> this garbage collection so, if your daily backup always runs withthe -g
> switch, there will be garbage accumulating in space on pages thatthe
> engine could otherwise re-use. Uncollected garbage also causessearches on
> frequently-accessed tables to take longer and longer over time.inspect
>
> There's no point in rebuilding indexes unless you need to - you can
> the statistics occasionally to judge the need and the frequency.thanks for your advise. It is my mistake to overlook the -g options.
>
> heLen
Without -g switch..the backup will take longer time to complete and
the performance of the database will be effected.
chooi