I have table with partitions by timestamp column (milliseconds). Theoretically it is unlikely to coincide, but can make the case that 2 inserts try to made with the same timestamp. Obviously it would throw an error for being duplicated the primary key.
What possible solution can there be in this case?
PRIMARY KEY(id, timestamp)whereidis a unique ID.timestampdoesn't have to be unique by itself.