Performance: CrossPostDispatcher makes N*M DB queries per dispatch #99
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Audit Finding H-11
Severity: Medium
Issue:
For each service (N), the dispatcher runs a duplicate guard query AND a template query. With 10 services, that's 20+ queries per article publish.
Fix: Batch the duplicate guard check into a single query that returns all existing article+service pairs. Batch template loading similarly.
Files:
CrossPostDispatcher.phpLabel:
priority: medium,type: performanceBranch created:
feature/99-performance-crosspostdispatcher-makes-n-