SORT command is always considered as Intent.WRITE #1626
Unanswered
SergeyKulagin
asked this question in
Q&A
Replies: 1 comment 3 replies
-
https://github.com/redis/redis/blob/efccd6353bacec9addc7278292fd8c3108d116e4/src/server.c#L779-L781 There's currently no workaround possible. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I was playing with Lettuce (6.1.0.M1) and Redis in a master-replica setup.
I noticed that Sort command always goes to the master node in spite of REPLICA_PREFERRED configuration.
Well, I see that Sort is not considered as ReadOnlyCommands which is perfectly reasonable.
But what is I'm planning to use sort command a lot without writing.
Can I somehow workaround this restriction and allow the driver to make reads from the replicas (as it was readonly command)?
Thanks in advance,
Sergey
Beta Was this translation helpful? Give feedback.
All reactions