redis-om-python icon indicating copy to clipboard operation
redis-om-python copied to clipboard

(Pipelining) Is there a method for pipelining a group of operations such as updates

Open badrobit opened this issue 3 years ago • 5 comments

If I have a set of redis-om defined objects (inherits from HashModel) is there an easy way for me to group my operations together to improve my performance when working with redis/redis-om? I would imagine it would be built around the Redis Pipeline Concept.

badrobit avatar Jul 20 '22 18:07 badrobit

Hi - yes you can use pipelines in OM. When using the OM library you also have access to all the core Redis features - you can start a pipeline the same way, include OM commands inside it, then execute!

@simonprickett this should probably also be a documentation issue

sav-norem avatar Sep 07 '22 16:09 sav-norem

Added documentation label.

simonprickett avatar Sep 07 '22 17:09 simonprickett

some examples can be found in the code, e.g. https://github.com/redis/redis-om-python/blob/main/aredis_om/model/model.py#L798

dadwin avatar Jan 17 '23 15:01 dadwin