Comment From: forkfork

What is a federated index query @chendali16?

Comment From: chendali16

When we use xrange, we can only query the sequenceid of the stream key, but the sequenceid is required to be strictly incremented. Generally, the service ID cannot match. we want to query the range data through the service ID and sequenceId, as follows: xrange streamkey serviceidmin serviceidmax sequenceidmin sequenceidmax

Comment From: guybe7

@chendali16 I'm not so sure I understand what you mean, can you give an example?

Comment From: guybe7

@chendali16 please write in English

Comment From: chendali16

Original query data is as follows:

127.0.0.1:6379> XREADGROUP GROUP mqGroup consumerB COUNT 2 STREAMS mq 1553585533795-2 1) 1) "mq" 2) 1) 1) "1553585533795-2" 2) 1) "msg" 2) "3" 3) "id" 4) "3" 2) 1) "1553585533895-2" 2) 1) "msg" 2) "4" 3) "id" 4) "4"

Now, I want to query by id, which is the data element, and the id is not self increasing.

127.0.0.1:6379> XREADGROUP GROUP mqGroup consumerB COUNT 1 STREAMS mq 1553585533795-2, id 3 1) 1) "mq" 2) 1) 1) "1553585533795-2" 2) 1) "msg" 2) "3" 3) "id" 4) "3"

Comment From: chendali16

@chendali16 please write in English

Hello, Can this be supported? Alternatively, we can add a key and query the message data through the key?