FT.TAGVALS Implementation Proposal #2560
Unanswered
jonathanc-n
asked this question in
Q&A
Replies: 1 comment 1 reply
-
So how do you persist it to disk? What is its encoding format? How do you load it at initialization of Kvrocks? Is such tracking efficient? I think if users rarely perform this operation, then precise tracking will be unnecessary. Also, before contributing to Kvrocks Search, please read: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@PragmaTwice
For my implementation for FT.TAGVALS,
all information is here:
https://redis.io/docs/latest/commands/ft.tagvals/
I will create a map data structure under field info to keep track of unique tag values. Each unique tag value will have a reference to how many different times it is called and will be decremented or incremented whenever the same tag is added/removed. If it decrements to zero it will be removed. If multiple tags are being added/removed at the same time, the changes will be written in a batch.
What are your thoughts for this?
Beta Was this translation helpful? Give feedback.
All reactions