-
Notifications
You must be signed in to change notification settings - Fork 145
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
[redis] use scan
to iterate keys
#418
Comments
Would you please share runnable reproduction? |
Hi pi0, using upstash as a redis provider Actually, as a second thought, I'm not sure whether the error is from upstash which is prohibiting reading that many keys altogether (since it is a blocking operation https://redis.io/commands/keys/) or whether it is a redis limitation. |
Hi @chronark do you know if it is a known limitation? And what would you suggest to scan too many keys? |
scan
to iterate keys
For redis maybe there should be a For us it is also not possible to work with the cache in vercel at the moment because we have too many entries (Error:
|
Good idea, we might use I don't have time to immedtialy jump on it but feel free to open a PR 👍🏼 (it might be easiest if we introduce this behavior behind a driver flag to move forward faster) |
Describe the feature
Working with large redis db, you might encounter an error if you try to fetch too many keys altogether.
There should be a scan option available (or getKeys should be implemented via scan)
Additional information
The text was updated successfully, but these errors were encountered: