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

Add a warning that iterating all sessions with redis can be very slow. #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jum
Copy link
Contributor

@jum jum commented Feb 16, 2024

I just did debug a problem that using Redis in a code path for an oauth2 flow was very slow compared to the version with the session store in a database. The problem turned out to be debugging code that used sessionstore.Iterate() to dump out all sessions which can be excruciatingly slow on a busy Redis server. In my case it took more than 10s to iterate through all sessions. So I thought it might be a good idea to warn that this might not be a good idea.

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.

None yet

1 participant