fix(GRO-639): N+1 queries in reminder scheduler #301

Closed
groombook-engineer[bot] wants to merge 1 commits from clean-gro-639 into main

1 Commits

Author SHA1 Message Date
Flea Flicker 08e15dafd5 fix(GRO-639): replace N+1 per-appointment queries with single JOIN query
Replace the per-appointment N+1 queries (client, pet, service, staff)
with a single JOIN query that fetches all appointment data at once.
Batch-fetch already-sent reminder IDs in a single query too.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-16 04:37:40 +00:00