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. For this invalid query, I think it should determine whether the offset is greater than the length of zset at first, and If it exceed the length of zset, then return directly.