search

Home  >  Q&A  >  body text

redis keys *会让生产环境崩溃, 那keys falut*呢?

如题,这种 keys falut* 正则表达式查找会让 崩溃吗?

淡淡烟草味淡淡烟草味2769 days ago1046

reply all(4)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-04-27 09:04:53

    The reason why keys are no longer produced and used is because when the number of keys in redis is large, keys will be very time-consuming, and redis will be blocked during this period. Similarly, when the number of keys falut* is large, it will also be blocked. redis

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-04-27 09:04:53

    It mainly depends on the number of keys matched by the expression

    reply
    0
  • ringa_lee

    ringa_lee2017-04-27 09:04:53

    Try to increase the matching degree of regular expressions. Don’t do this~

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-04-27 09:04:53

    If you only take the quantity, directly dbsize

    reply
    0
  • Cancelreply