Q
Q
Qudres2017-09-07 10:45:14
PHP
Qudres, 2017-09-07 10:45:14

How to speed up php-redis (it's very slow)?

Right off the
bat, the redis-benchmark on the server shows ~120k set/get operations per second, which suits me.
when testing php5.6 + redis
100000 iterations
lrang name 0 -1
- ~7 seconds are executed...
If we arrange everything in one large transaction (pipeline), then about ~0.6 seconds... which gives an increase of x10 speed, but one large transaction I don't like.
redis-server version 3.0.6 (default config).
php-redis version (3.1.2-1+deb.sury.org~xenial+1).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fortop, 2017-09-07
@Fortop

Slow for what?
How many Redis operations do you have within one user request?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question