Questions tagged [py-redis]

Tags for questions about redis-py. The python implementation of the Redis database protocol.

Tags for questions about redis-py. The python implementation of the Redis database protocol.

Read more about redis-py here

21 questions
0
votes
1 answer

Is it any downside or overhead to Redis Pipeline for executing small set of commands?

I'm reading that using Redis Pipeline could improve performance by sending a batch of commands to the Redis server rather than sending separate messages one by one which could add up in latency time. In this way, there is a rough correlation between…
CoderInNetwork
  • 2,923
  • 4
  • 22
  • 39
0
votes
1 answer

transactional pubsub in Redis with python redis client

I know Redis has the concept of transactions and pub/sub. I am wondering if you can do a transactional pubsub with Python redis client. Here is the setup. I have two clients A and B who are pushing to the same two channels. Each time, each client…
bumpbump
  • 542
  • 4
  • 17
0
votes
1 answer

Redis-python add multiple values of type set to a redis hash

Redis n00b here so don't shoot! I need to store a collection of sets in redis indexed by key - I can: import redis r = redis.Redis() r.sadd("A:B:123", *{456, 789}) r.sadd("A:B:124", *{666, 777}) but then if I want the collection "A:B" I have to…
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
0
votes
1 answer

Specifying which processes implement RQ worker using mpirun

I am using RQ to implement a job queue on a cluster, where the jobs are managed and run with Python. The RQ workers are launched via mpirun, followed by a Python program which adds jobs to the queue. I have noticed that when I only have a single…
Brian
  • 115
  • 8
0
votes
1 answer

Count inflight messages in Redis

I'm using Redis as a simple pubsub broker, managed by the redis-py library, using just the default 'main' channel. Is there a technique, in either Redis itself or the wrapping Python library to count the number of messages in this queue? I don't…
Madden
  • 1,024
  • 1
  • 9
  • 27
0
votes
1 answer

Redis limit on number of subscribed channels?

I am using the python redis package to interact with redis on my Mac. I start redis in another window by just running redis-server with no arguments. Then I try to subscribe to about 80 channels using the redis pubsub object. I get connect messages…
Marc
  • 3,386
  • 8
  • 44
  • 68
1
2