RediSearch / redisearch-py

RediSearch python client
https://redisearch.io
BSD 2-Clause "Simplified" License
221 stars 63 forks source link

Pipelining redisearch with redis commands #134

Open logic-and-math opened 3 years ago

logic-and-math commented 3 years ago

Is there a way to have redis-py commands and redisearch-py commands in the same pipeline?

abrookins commented 3 years ago

@logic-and-math Not at this time, I'm afraid! The current design of this library expects to always be running in immediate execution mode. It won't work if you pass in a Pipeline object as the conn parameter to redisearch.Client.__init__(), because the search() method tries to parse the result immediately.

We'll need to take a look at changing this to support pipelines!