Skip to content

fix: eliminate N+1 queries when fetching subscription plans with feat…#278

Open
gTanusri wants to merge 1 commit into
rdodiya:gssoc_developfrom
gTanusri:fix/issue-272-subscription-n-plus-one
Open

fix: eliminate N+1 queries when fetching subscription plans with feat…#278
gTanusri wants to merge 1 commit into
rdodiya:gssoc_developfrom
gTanusri:fix/issue-272-subscription-n-plus-one

Conversation

@gTanusri

@gTanusri gTanusri commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the N+1 query problem when fetching subscription plans and their features.

  • Added findAllWithFeatures() and findByIdWithFeatures() with LEFT JOIN FETCH
  • Updated getAllPlans() and getPlanById() to use the eager-fetch queries

Closes #272

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.

Fix N+1 Query Problem in SubscriptionPlan Fetch

1 participant