Subject | Re: total records and total versions bigger than expected |
---|---|
Author | Juan Jose Ochoa |
Post date | 2005-07-29T21:21:38Z |
Hi,
1. Can the rows marked as deleted make the selection of records
slower.
2. How can I know who own the transaction (or the transaction number)
that has been around for a while?
3. Can I use gfix -commit (somehow) from my pc to solve this
situation?
Thanks
Juan Jose.
--- In firebird-support@yahoogroups.com, "Ann W. Harrison"
<aharrison@i...> wrote:
1. Can the rows marked as deleted make the selection of records
slower.
2. How can I know who own the transaction (or the transaction number)
that has been around for a while?
3. Can I use gfix -commit (somehow) from my pc to solve this
situation?
Thanks
Juan Jose.
--- In firebird-support@yahoogroups.com, "Ann W. Harrison"
<aharrison@i...> wrote:
> Juan Jose Ochoa wrote:have
> >
> > Can someone tell me please why the statistics of the table say I
> > 8272 records when I only have 30. This morning it said that Ihad
> > 80000~ when I really had about two hundred.all
> >
>
> Gstat counts all records in the database, including those that are
> marked as deleted but have not yet been removed. Records that are
> marked as deleted are not actually removed until after the end of
> transactions that started before the delete was committed. Evenwhen
> that condition is meet, the record is only garbage collected whensome
> transaction tries to read it, so gstat may be counting records thatare
> awaiting garbage collection.6500
>
> Your stats show a transaction that's been around while more than
> other transactions have come and gone.that
>
> Oldest transaction 304318
> Oldest active 304319
> Oldest snapshot 301818
> Next transaction 308396
>
> As an aside, gstat also counts all index entries, including those
> represent records that have been deleted but not garbagecollected. As
> a result, gstat will sometimes report duplicates in unique orprimary
> key indexes - no transaction can see both entries, but the indexdoes
> have two entries for the same value.
>
> Regards,
>
>
> Ann