Redis: SORT BY / GET in cluster mode

Created on 18 Nov 2015  路  2Comments  路  Source: redis/redis

Is there any reason why these flags are denied when all keys have the same hash prefix?

Most helpful comment

It probably does, but if we check that all hashes are the same and do not include * - then it should be safe to use on a single node. Not sure if this is really needed, but technically I don't see any limitation with this specific pattern

All 2 comments

Both BY and GET allow for patterns, which in turn means it can't know up front that the keys will be on the right slot.
In case of a pattern beginning with what looks like a hash tag, it could do the parsing and decide to allow it. This makes the whole semantic a little bit more complicated.

It probably does, but if we check that all hashes are the same and do not include * - then it should be safe to use on a single node. Not sure if this is really needed, but technically I don't see any limitation with this specific pattern

Was this page helpful?
0 / 5 - 0 ratings