Skip to content

Preload workshop_host in DashboardQuery.upcoming_events_for_user (per-workshop N+1 on /dashboard) #3070

Open

Description

@mroderick

DashboardQuery.upcoming_events_for_user runs one workshop_host lookup per workshop on every /dashboard render. Give it the same treatment as PR #3066: keep :sponsors in the join and add preload(workshop_host: :sponsor).

Raised from the review of PR #3066; the gap predates that PR.

Activity

  1. davidmillen50 commented on Nov 2, 2026

    @davidmillen50
    Contributor

    WIP #3074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance issues and optimizations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions