Skip to content

Commit a836a8b

Browse files
authored
dm-best-practices: Update for MySQL Compatible AUTO_INCREMENT (#19207)
1 parent 6cbfeb3 commit a836a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dm/dm-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To distribute the workload evenly on multiple nodes, the design for the distribu
4141

4242
`AUTO_INCREMENT` in TiDB is compatible with `AUTO_INCREMENT` in MySQL. However, as a distributed database, TiDB usually has multiple computing nodes (entries for the client end). When the application data is written, the workload is evenly distributed. This leads to the result that when there is an `AUTO_INCREMENT` column in the table, the auto-increment IDs of the column might be inconsecutive. For more details, see [AUTO_INCREMENT](/auto-increment.md#implementation-principles).
4343

44-
If your business has a strong dependence on auto-increment IDs, consider using the [SEQUENCE function](/sql-statements/sql-statement-create-sequence.md#sequence-function).
44+
If your business has a strong dependence on auto-increment IDs, consider using the [MySQL-compatible `AUTO_INCREMENT` mode](/auto-increment.md#mysql-compatibility-mode) or the [`SEQUENCE` function](/sql-statements/sql-statement-create-sequence.md#sequence-function).
4545

4646
#### Usage of clustered indexes
4747

0 commit comments

Comments
 (0)