Module: ActiveRecord::Materialized::Metadata::Reconciliation Private
- Defined in:
- lib/activerecord/materialized/metadata/reconciliation.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Writes a view's reconciliation bookkeeping — last_reconciled_at and
reconciled_partition_count — on the metadata row. Kept out of ActiveRecord::Materialized::Metadata
itself the way MaintenancePayload is; reads go through the metadata record.
Class Method Summary collapse
-
.mark!(metadata, repaired_partition_count:) ⇒ Object
private
Stamp a completed reconciliation pass, resetting the staleness clock even when no partition needed repair.
Class Method Details
.mark!(metadata, repaired_partition_count:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Stamp a completed reconciliation pass, resetting the staleness clock even when no partition needed repair.
16 17 18 19 20 21 |
# File 'lib/activerecord/materialized/metadata/reconciliation.rb', line 16 def mark!(, repaired_partition_count:) .record.update!( last_reconciled_at: Timestamps.current, reconciled_partition_count: repaired_partition_count ) end |