Files
Vishnu Narayanan f16c7e59b8 perf: use update_columns for contact last_activity_at
Replace `sender.update(last_activity_at:)` with `update_columns` in
Message#update_contact_activity. This runs on every incoming message
(3.3M calls/day) and the full ActiveRecord update lifecycle is
unnecessary for a single timestamp write:

- Skips before_save :sync_contact_attributes (only relevant for
email/phone/identifier changes, not last_activity_at)
- Skips after_update_commit :dispatch_update_event which fires
CONTACT_UPDATED → ActionCable broadcasts, webhook deliveries,
and LeadSquared hooks on every incoming message with no
meaningful data change
- Eliminates 192K seconds/day of DB time from contact UPDATEs
that trigger full validation and callback chains
2026-02-17 18:40:36 +05:30
..
2025-12-17 07:54:50 -08:00
2025-07-16 09:04:02 +05:30
2022-05-16 13:59:59 +05:30
2020-09-26 02:32:34 +05:30