Hi guys,
I’m looking for updating my columnstore table to benefit from the new “PRIMARY KEY” feature but I’m a bit confused by the documentation (Creating a Columnstore Table · SingleStore Documentation).
Is the PRIMARY KEY(x) syntax just a shortcut to create a UNIQUE KEY(x) USING HASH or the implementation is different?
The documentation says:
PRIMARY KEY(<column name>)
is created asSHARD(<column name>), UNIQUE KEY(<column name>) USING HASH
But in my table, I want the primary key column to be different than the shard key.
Can you confirm that I will benefit from the new “primary key” feature by just adding a: UNIQUE KEY(<column name>) USING HASH
?
Will the “ON DUPLICATE KEY UPDATE” work with the UNIQUE KEY(<column name>) USING HASH
?
Thanks