pipelining with python client #2825
-
Hello, is it possible to run multiplexing/pipelining with the python client? for i in range(100000):
await client.set(f"key{i}", "1") |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, We are currently working on pipeline support. |
Beta Was this translation helpful? Give feedback.
-
Hello 🙂 , For now, there are two possible solutions to achieve batch operations:
data = {f"key{i}": "1" for i in range(100000)}
await client.mset(data)
data = {f"key{i}": "1" for i in range(100000)}
tasks = [client.set(key, value) for key, value in data.items()]
await asyncio.gather(*tasks) We're working on adding support for pipelines in Glide. |
Beta Was this translation helpful? Give feedback.
Hello 🙂 ,
For now, there are two possible solutions to achieve batch operations:
However, please note that while tasks are executed concurrently, they are not guaranteed to be scheduled or executed in a specific order.
We're working on adding support for pipelines in Glide.