Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW]Can Redis stream supports federated index queries? #11106

Open
chendali16 opened this issue Aug 11, 2022 · 6 comments
Open

[NEW]Can Redis stream supports federated index queries? #11106

chendali16 opened this issue Aug 11, 2022 · 6 comments
Assignees

Comments

@chendali16
Copy link

No description provided.

@forkfork
Copy link

What is a federated index query @chendali16?

@guybe7 guybe7 self-assigned this Aug 14, 2022
@chendali16
Copy link
Author

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

@guybe7
Copy link
Collaborator

guybe7 commented Sep 1, 2022

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

@guybe7
Copy link
Collaborator

guybe7 commented Sep 1, 2022

@chendali16 please write in English

@chendali16
Copy link
Author

Original query data is as follows:

127.0.0.1:6379> XREADGROUP GROUP mqGroup consumerB COUNT 2 STREAMS mq 1553585533795-2

    1. "mq"
        1. "1553585533795-2"
          1. "msg"
          2. "3"
          3. "id"
          4. "3"
        1. "1553585533895-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. "mq"
        1. "1553585533795-2"
          1. "msg"
          2. "3"
          3. "id"
          4. "3"

@chendali16
Copy link
Author

@chendali16 please write in English

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants