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
Even though mentioned on the home that pipelining support is there in the library, I haven't been able to use it or find any reference in the code.
Can i not use pipeline as simply as :
Hi!
Your serial example doesn't look correct, it doesn't await for result.
for python3.6 it should be [await conn.hgetall('my_key') for i in range(10000]
Having 10000 request in parallel might be faster than sequentially if you use connection pool with 10000 connections, otherwise you block on awaiting for connection release.
yes, unfortunately, pipeline support is not implemented and there is no mention in README
Even though mentioned on the home that pipelining support is there in the library, I haven't been able to use it or find any reference in the code.
Can i not use pipeline as simply as :
Also, if I execute 3 redis commands in parallel using
asyncio.gather
and 3 commands pipelined , which will be faster ?I did a small benchmark, where I am reading 10000 keys using asyncio.gather concurrently and serially.
These were the numbers :
This is strange no?
Here is the code -
Parallel
Serial
[r.hgetall('my_key') for i in range(10000)]
Where am I going wrong ?
The text was updated successfully, but these errors were encountered: