Open Rigo-m opened 3 months ago
Would you please share runnable reproduction?
Hi pi0, using upstash as a redis provider https://stackblitz.com/edit/nuxt-starter-ako5kk?file=server%2Fapi%2Ferror-redis.ts this simple script triggers the error when using getKeys.
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. Can I do anything else?
Hi @chronark do you know if it is a known limitation? And what would you suggest to scan too many keys?
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