Using redis-py to access a redis-cluster is so slowly
Using redis-py to access a redis-cluster set with a key of more than 100m takes 6s, which is too slow. How can I optimize it, but when I use the same environment to access a standalone, it is very fast
This is because the key needs to be hashed before being sent to the correct node. It would be helped a little by #2118, but the amount of time would still be directly proportional to the length of the key. You could try using hashtags in your keys (keep it near the start): https://redis.io/docs/reference/cluster-spec/#hash-tags.
This is because the key needs to be hashed before being sent to the correct node. It would be helped a little by #2118, but the amount of time would still be directly proportional to the length of the key. You could try using hashtags in your keys (keep it near the start): https://redis.io/docs/reference/cluster-spec/#hash-tags.
Sorry, I didn't describe clearly ,Not the key exceeds 100m, is the value over 100m
Can you share a sample code to illustrate the performance difference?
tks
Can you share a sample code to illustrate the performance difference?
hi
This issue is marked stale. It will be closed in 30 days if it is not updated.