Closed GoogleCodeExporter closed 8 years ago
Are the commands sent in a pipeline, or part of a MULTI/EXEC block? It would
help if you provided an excerpt of the commands that are sent to Redis, or even
the script you use when you observe this behavior. When the issue is
reproducible, it should not be very hard to track down what is causing this.
Thanks.
Original comment by pcnoordh...@gmail.com
on 22 Jul 2011 at 8:08
No, the commands are not sent in a pipeline nor is it a part of a MULTI/EXEC
block.
The script is very simple: Key/Value pairs are read from a plain text file and
zadd is continuously called until EOF.
Original comment by sriharsh...@gmail.com
on 22 Jul 2011 at 8:38
Attaching the script.
Original comment by sriharsh...@gmail.com
on 22 Jul 2011 at 8:42
Attachments:
You're creating a new connection for every ZADD. Probably Python can't GC the
connections fast enough, and you run out of file descriptors. Use a single
connection to perform all ZADD's instead.
Original comment by pcnoordh...@gmail.com
on 22 Jul 2011 at 8:58
Using a single connection fixed it. I could add all the key/value pairs without
a hitch.
Original comment by sriharsh...@gmail.com
on 22 Jul 2011 at 10:02
Original issue reported on code.google.com by
sriharsh...@gmail.com
on 22 Jul 2011 at 8:03