Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

perf(api): Lookup subscriber preferences with a single database query #7119

Merged
merged 12 commits into from
Nov 28, 2024

Conversation

rifont
Copy link
Collaborator

@rifont rifont commented Nov 24, 2024

What changed? Why was the change needed?

  • Lookup each subscriber preference set with a single database query
  • Extract preference merging logic to a separate use-case for shared use

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented Nov 24, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 92c346a
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/674881f82b54cb000818e1cb
😎 Deploy Preview https://deploy-preview-7119.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rifont rifont changed the title perf(preferences): Lookup subscriber preferences with a single database query perf(api): Lookup subscriber preferences with a single database query Nov 24, 2024
Copy link
Contributor

@SokratisVidros SokratisVidros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beauty!

@rifont rifont merged commit 1a7781b into next Nov 28, 2024
37 checks passed
@rifont rifont deleted the simplify-subscriber-preference-retrieval branch November 28, 2024 15:08
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