Reputation:
I have been recently introduced to MVC, in which uses a SQL database.
In most of the tables within the project, there is a column for OptimisticLockField
, and a GCRecord
(both of type int
).
I have found quite extensive info on the Optimistic/pessimistic locks. However, I can't find exactly what this GCRecord is used for, or when it is used, nor why it was included.
The only 'definition' is this one liner:
A GC record represents a single garbage collection activity. It is independent of whether the GC occured due to a manual GC request or an allocation failure.
But am still none the wiser as to what this means, or even if it is the right 'definition' for this context.
Is this just a SQL thing? Or should this be used in most/all databases?
Upvotes: 1
Views: 1791
Reputation: 903
The GCRecord field is used to mark objects which have been removed from the collection. It is part of a mechanism called deferred deletion
Upvotes: 1