ROCK-8422 Optimized job to reduce webfarm messages - #208
Conversation
There was a problem hiding this comment.
Pull request overview
Optimizes the ResetGroupLocationSchedules Quartz job to reduce broad cache clears (and resulting webfarm messaging) by batching DB changes and performing more targeted cache invalidation after re-activating group-location schedules.
Changes:
- Adds an early exit when there are no deactivated schedules to process.
- Batches DefinedValue deletions + performs a single
SaveChanges()before cache work. - Replaces global cache clears with targeted updates/flushes for occurrences, kiosk types, and kiosk devices (and intentionally avoids clearing
AttendanceCache).
…s.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
gmcgrady
left a comment
There was a problem hiding this comment.
Limiting cache clear operations by tracking affected items should effectively minimize the message load of this job, as expected. Targeting kiosk types by their affectedGroupTypeIds was a particularly clever way of handling this issue. To Stephen's earlier point, this issue could have originated from high Easter volume; however, this narrowed cache clearing strategy is a win, regardless. This implementation is super readable & clear to understand! Approving & merging.
No description provided.