Skip to content

Commit

Permalink
dm-best-practices: Update for MySQL Compatible AUTO_INCREMENT (#19207)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Oct 28, 2024
1 parent 6cbfeb3 commit a836a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm/dm-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To distribute the workload evenly on multiple nodes, the design for the distribu

`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).

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).
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).

#### Usage of clustered indexes

Expand Down

0 comments on commit a836a8b

Please sign in to comment.