redict/tests
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
..
assets Fix test "server is up" detection after logging changes. 2016-12-19 16:49:58 +01:00
cluster Fix running single test 14-consistency-check.tcl (#7587) 2020-07-30 08:56:21 +03:00
helpers revert an accidental test code change done as part of the tls project 2019-12-01 16:10:09 +02:00
integration fix new rdb test failing on timing issues (#7604) 2020-08-04 08:53:50 +03:00
modules This PR introduces a new loaded keyspace event (#7536) 2020-07-23 12:38:51 +03:00
sentinel TLS: Configuration options. 2019-10-07 21:07:27 +03:00
support Add a ZMSCORE command returning an array of scores. (#7593) 2020-08-04 17:49:33 +03:00
tmp minor fixes to the new test suite, html doc updated 2010-05-14 18:48:33 +02:00
unit Add a ZMSCORE command returning an array of scores. (#7593) 2020-08-04 17:49:33 +03:00
instances.tcl Fix out of update help info in tcl tests. (#7516) 2020-07-14 11:35:04 +03:00
test_helper.tcl runtest --stop pause stops before terminating the redis server (#7513) 2020-07-13 16:09:08 +03:00