Subject | Re: [firebird-support] Database Size |
---|---|
Author | Ann W. Harrison |
Post date | 2006-09-21T14:46:39Z |
Priebe, Joern (GE Indust, Security) wrote:
back versions. The report will be long, but it will tell you
whether you've got a lot of partially used pages, or retained
back versions.
One thing to note is that your deletes won't actually release
space until you read those records, either in your application
or interactively with a select whose criteria could include them,
or backup the database, or sweep the database.
The delete marks the records as deleted - a deleted record takes
more space than an undeleted record. It is removed only after
1) the transaction that performed the delete commits
and
2) all transactions concurrent with that transaction complete
and
3) some transaction attempts to read the record
Gbak reads all records so it can perform the third action, as
can sweep.
Regards,
Ann
> Hello Folks,The gstat tool will report on actual space utilization including
>
> I have (hopefully) an easy question concerning a database's size.
back versions. The report will be long, but it will tell you
whether you've got a lot of partially used pages, or retained
back versions.
One thing to note is that your deletes won't actually release
space until you read those records, either in your application
or interactively with a select whose criteria could include them,
or backup the database, or sweep the database.
The delete marks the records as deleted - a deleted record takes
more space than an undeleted record. It is removed only after
1) the transaction that performed the delete commits
and
2) all transactions concurrent with that transaction complete
and
3) some transaction attempts to read the record
Gbak reads all records so it can perform the third action, as
can sweep.
Regards,
Ann