redict/tests/support
Tyson Andre f11f26cc53
Add a ZMSCORE command returning an array of scores. (#7593)
Syntax: `ZMSCORE KEY MEMBER [MEMBER ...]`

This is an extension of #2359
amended by Tyson Andre to work with the changed unstable API,
add more tests, and consistently return an array.

- It seemed as if it would be more likely to get reviewed
  after updating the implementation.

Currently, multi commands or lua scripting to call zscore multiple times
would almost definitely be less efficient than a native ZMSCORE
for the following reasons:

- Need to fetch the set from the string every time instead of reusing the C
  pointer.
- Using pipelining or multi-commands would result in more bytes sent by
  the client for the repeated `ZMSCORE KEY` sections.
- Need to specially encode the data and decode it from the client
  for lua-based solutions.
- The fastest solution I've seen for large sets(thousands or millions)
  involves lua and a variadic ZADD, then a ZINTERSECT, then a ZRANGE 0 -1,
  then UNLINK of a temporary set (or lua). This is still inefficient.

Co-authored-by: Tyson Andre <tysonandre775@hotmail.com>
2020-08-04 17:49:33 +03:00
..
cli.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
cluster.tcl Add a ZMSCORE command returning an array of scores. (#7593) 2020-08-04 17:49:33 +03:00
redis.tcl TLS: Configuration options. 2019-10-07 21:07:27 +03:00
server.tcl testsuite may leave servers alive on error (#7549) 2020-07-21 16:56:19 +03:00
test.tcl runtest --stop pause stops before terminating the redis server (#7513) 2020-07-13 16:09:08 +03:00
tmpfile.tcl Initial implementation of a client-server parallel testing system for Redis in order to speedup execution of the test suite. 2011-07-10 23:25:48 +02:00
util.tcl Fix failing tests due to issues with wait_for_log_message (#7572) 2020-07-28 11:15:29 +03:00