• thomaston's avatar
    ZREVRANGEBYSCORE Optimization for out of range offset (#5773) · 39f716a1
    thomaston authored
    
    
    ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
    When the offset is too large, the query is very slow. Especially when the offset is greater than the length of zset it is easy to determine whether the offset is greater than the length of zset at first, and If it exceed the length of zset, then return directly.
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    39f716a1
t_zset.c 118 KB