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

fix(api): improve the flow of mark message as use case for performance #3238

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

p-fernandez
Copy link
Contributor

What change does this PR introduce?

Parallelises 2 calls mutually independent for quicker execution and avoids an unnecessary loop if user is not admin.

Why was this change needed?

Noticed this flow improvement when analysing calls pre yesterday's deployment where calls to markAs endpoint were quite slow. The biggest improvement has come from our infrastructure changes but decided to add this small thing as an extra.

Other information (Screenshots)

Copy link
Contributor

@LetItRock LetItRock left a comment

Choose a reason for hiding this comment

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

🎖️

@p-fernandez p-fernandez added this pull request to the merge queue Apr 19, 2023
Merged via the queue into next with commit d02f92a Apr 19, 2023
12 checks passed
@p-fernandez p-fernandez deleted the fix-mark-message-as-flow branch April 19, 2023 08:45
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.

None yet

2 participants