Open lance6716 opened 2 years ago
now I think more types can use prefix index
https://dev.mysql.com/doc/refman/8.0/en/create-index.html#create-index-column-prefixes
https://github.com/pingcap/ticdc/pull/3467 just support prefix index, and we will support function index or expression index in other pr.
Bug Report
Please answer these questions before submitting your issue. Thanks!
we can add an unique index on prefix of string-type columns
in TiDB:
so when calculate causality key of
c2
, we should use123
not1234
, otherwise user may face errors like duplicate entry (update '1234' to '2234' will be concurrent with insert '1235').What did you expect to see?
What did you see instead?
Versions of the cluster
DM version (run
dmctl -V
ordm-worker -V
ordm-master -V
):