Skip to content

Improvement/remove-unused-query#1

Draft
faridatulna wants to merge 3 commits intomasterfrom
improvement/remove-unused-query
Draft

Improvement/remove-unused-query#1
faridatulna wants to merge 3 commits intomasterfrom
improvement/remove-unused-query

Conversation

@faridatulna
Copy link
Copy Markdown
Member

Verdicts

$withCount adds overhead on find(): The Tag model's $withCount = ['subscribers'] appends a correlated count subquery even though update() never uses subscribers_count. The count is wasted here.

$withCount = ['subscribers'] on Tag model: Every query on Tag (including the find() call here) carries a correlated subquery counting subscribers. This is unnecessary overhead inside store().

@faridatulna faridatulna self-assigned this Apr 14, 2026
@faridatulna faridatulna force-pushed the improvement/remove-unused-query branch from 62782ff to 89ea82c Compare April 14, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants