Subject | Re: [firebird-support] Backup and restore elapsed time |
---|---|
Author | Ann W. Harrison |
Post date | 2006-11-25T20:27:18Z |
Bob Murdoch wrote:
collection. With the -g switch, your backups will be much faster,
but your databases will not be cleaned up. If you plan to restore
the backup and replace the database, always use the -g switch.
There's no point in cleaning up your house before you burn it down.
The second issue is the type of garbage collection. Removing entries
from indexes with long duplicate chains is expensive in Firebird
versions before 2.0. Making the indexes more nearly unique can
save backup time when doing garbage collection.
is done bu sorting each table once for each index, then building the
index from the bottom up. That's a fast way to build indexes, but
still an expensive operation. Especially if you use the default memory
settings for sort in the configuration file. Try giving the sort
much larger runs and larger total memory.
the backup, and an unfortunate table size could affect the sorts that
create indexes.
Regards,
Ann
>The major variable in backup time is the amount and type of garbage
> Since mid-September, the database has steadily grown from 29.6GB
> (restored size) to 33.5GB. During that same time frame, backups have
> taken between 1.25 hours and 3.5 hours,
collection. With the -g switch, your backups will be much faster,
but your databases will not be cleaned up. If you plan to restore
the backup and replace the database, always use the -g switch.
There's no point in cleaning up your house before you burn it down.
The second issue is the type of garbage collection. Removing entries
from indexes with long duplicate chains is expensive in Firebird
versions before 2.0. Making the indexes more nearly unique can
save backup time when doing garbage collection.
> while restores have taken between 5 hours and 9 hours.A major cost of restoring a database is recreating the indexes. That
is done bu sorting each table once for each index, then building the
index from the bottom up. That's a fast way to build indexes, but
still an expensive operation. Especially if you use the default memory
settings for sort in the configuration file. Try giving the sort
much larger runs and larger total memory.
> However, those times have not coincided with the growth of theAgain, garbage collection is the likely candidate for variability in
> database. From one day to the next, there could be a swing of more
> than an hour one way or the other, for either backup or restore.
the backup, and an unfortunate table size could affect the sorts that
create indexes.
Regards,
Ann