You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-25
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ As stated in the official [ioredis documentation](https://github.com/redis/iored
18
18
19
19
> "All keys in a pipeline should belong to slots served by the same node, since ioredis sends all commands in a pipeline to the same node."
20
20
21
-
This means that when executing multiple commands in a pipeline, all keys must belong to the same Redis slot, as `ioredis` sends the pipeline commands to a single node. If the keys interact with different shards, pipeline commands would fail with error`All the keys in a pipeline command should belong to the same slot`
21
+
This means that when executing multiple commands in a pipeline, all keys must belong to the same Redis slot, as `ioredis` sends the pipeline commands to a single node. If the keys interact with different shards, pipeline commands would fail with error.
22
22
23
23
Due to this limitation, pipelining cannot be reliably used in Redis clusters with ioredis, leading to increased network latency as each command is executed individually instead of being batched together.
24
24
@@ -118,20 +118,6 @@ The `clusterPipeline` method takes an array of Redis commands (e.g., [['set', 'k
118
118
-**Pipeline Execution**: Once the commands are grouped by node, they are executed in parallel on each node, ensuring better performance when dealing with large pipelines.
119
119
-**Result Handling**: Results from each node are merged and returned in the same order as the original commands.
0 commit comments