Make Action Cable subscriptions use DB replicas
What does this MR do and why?
Action Cable subscriptions executes some DB queries to do authorization checks. We allow these to use the replicas while keeping the subscription triggers on the primary. These triggers need up-to-date data because they are fired in response to an update.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #399389 (closed)
Edited by Heinrich Lee Yu