I have a table in Scylla
CREATE TABLE event (
eventSource TEXT,
createdAt TIMEUUID,
eventData TEXT,
PRIMARY KEY (eventSource, createdAt)
) WITH cdc = {'enabled':true};
now I wish to track inserts/updates done to this table for a particular partition key using CDC
I know that Stream ID in CDC
depends on generation and base table partition key, but how do I get this
stream ID without doing a full table scan for CDC table?
Is there some function that would convert a given partition key to a stream id for currently active generation?