git-hulk commented on issue #2594: URL: https://github.com/apache/kvrocks/issues/2594#issuecomment-2408898753
> How to define a new event? e.g. for ZSET data type, could you list all event, for every write commands [here](https://kvrocks.apache.org/docs/supported-commands#zset-commands)? It generally contains: `ADD|DELETE|SET`. For example, the ZPOP command should generate a DELETE event. > If we store "subkey" here, it's too "low level" to be a recorder for structured semantics. Also could you list all "subkey"s for all ZSET commands? What I mean by subkey here depends on the data type. For the Hash type, which we can see in the example, its subkey is the field `f0`. And for the ZSet type, its subkey should be its member. I don't quite understand the meaning of `low level` here. Could you elaborate a bit about what you think? > Structured: The middle layer operators must have clear semantics, retaining high-level data structure information, rather than fragmenting into rocksdb reads and writes. For the change stream event is now mapping to what's command changed instead of rocksdb read/writes. So that's why we have `key` and `subkey`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
