Counter a better choice for uniqueness?
问题 I currently have the following table layout for a basic user event table: CREATE TABLE IF NOT EXISTS events.events_by_user( user text, added_week int, added_timestamp timestamp, event text, uuid uuid, PRIMARY KEY((user, added_week), added_timestamp, event, uuid)) WITH CLUSTERING ORDER BY(added_timestamp DESC) Thus uniqueness is basically warranted by the uuid as last column of the primary key. There is a chance that several identical events for the same user occur in the same millisecond