Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Eager load mentionedBy and only missing relations #64

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

SychO9
Copy link
Member

@SychO9 SychO9 commented Mar 21, 2021

Part of flarum/framework#2637

mentionedBy is accessed in the same class a little below but not eager loaded, additionally we want to only eager load relations that weren't loaded before, otherwise it can end up forgetting about the previously eager loaded relations.

flarum lan___clockwork_app (3)
flarum lan___clockwork_app (4)

@askvortsov1
Copy link
Member

Where'd the extra update come from?

@SychO9
Copy link
Member Author

SychO9 commented Mar 21, 2021

Either SessionAccessToken last_activity_at update or User last_seen_at update which seem to not always run.

@SychO9 SychO9 mentioned this pull request Mar 25, 2021
13 tasks
@SychO9 SychO9 merged commit 63c437b into master Mar 25, 2021
@SychO9 SychO9 deleted the sm/nplus-one-queries branch March 25, 2021 14:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants