redisgraph-py icon indicating copy to clipboard operation
redisgraph-py copied to clipboard

Support for batching of queries

Open narayanacharya6 opened this issue 2 years ago • 2 comments

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.

narayanacharya6 avatar Dec 07 '21 11:12 narayanacharya6

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.

swilly22 avatar Dec 07 '21 12:12 swilly22

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?

narayanacharya6 avatar Dec 08 '21 07:12 narayanacharya6