RedisGraph / redisgraph-py

RedisGraph python client
https://redisgraph.io
BSD 3-Clause "New" or "Revised" License
189 stars 49 forks source link

Support for batching of queries #154

Open narayanacharya6 opened 2 years ago

narayanacharya6 commented 2 years ago

This is more of a question than an issue. I was wondering if there is any way to batch my queries in order to gain some performance.

I tried to use UNWIND as suggested here - https://github.com/RedisGraph/RedisGraph/issues/1293#issuecomment-675691472 but ran into a bug(?), reported here https://github.com/RedisGraph/RedisGraph/issues/2057, with redis-server crashing.

swilly22 commented 2 years ago

Have you considered using multiple connections, splitting your queries among? Although I would stick with the suggested UNWIND approach figuring out this issue you've encountered.

narayanacharya6 commented 2 years ago

I'll take a look at having multiple connections.

What about using pipelines - https://redis.io/topics/pipelining? Please correct me if I am wrong but looking at the source code, I don't see we support using pipelines with redisgraph queries at the moment? Is this intentional?