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: cache user list #913

Merged
merged 1 commit into from
May 10, 2024
Merged

perf: cache user list #913

merged 1 commit into from
May 10, 2024

Conversation

nikkothari22
Copy link
Member

User List is cached on Redis.

Fetching 3524 Raven Users via raven_users.get_list API (averages over 10 runs)

Before: 120ms
After: 20ms

Savings per request here does not matter as much but multiple concurrent users trying to access Raven at the same time will not hit the database to fetch the same list of users.

@nikkothari22 nikkothari22 linked an issue May 10, 2024 that may be closed by this pull request
@nikkothari22 nikkothari22 merged commit 38f2f23 into develop May 10, 2024
2 of 3 checks passed
@nikkothari22 nikkothari22 deleted the 785-cache-user-list branch May 10, 2024 13:25
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.

Cache user list
1 participant