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

NoteEntityService の pack 内で CustomEmojiService の prefetchEmojis を呼ぶ #179

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

riku6460
Copy link
Collaborator

@riku6460 riku6460 commented Oct 7, 2023

What

タイトル通り

Why

streaming から Note の pack を行う際に populateEmojis から大量にクエリが飛ぶのを回避する

Additional info (optional)

prefetchEmojis ではキャッシュ済みのものを除外しているため、packMany が呼ばれた場合でも大量にクエリが飛ぶことはない

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

streaming から Note の pack を行う際に populateEmojis から大量にクエリが飛ぶのを回避する

prefetchEmojis ではキャッシュ済みのものを除外しているため、packMany が呼ばれた場合でも大量にクエリが飛ぶことはない
@sonarcloud
Copy link

sonarcloud bot commented Oct 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Collaborator

@KOBA789 KOBA789 left a comment

Choose a reason for hiding this comment

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

ナイス prefetch

@riku6460 riku6460 merged commit 3bbac6f into io Oct 7, 2023
17 checks passed
@riku6460 riku6460 deleted the prefetch-emojis branch October 7, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants