Skip to content

Commit c2b19cd

Browse files
JoyinqinTomShawn
andauthored
Remove allow-auto-random from config manual (pingcap#4037)
Co-authored-by: TomShawn <[email protected]>
1 parent bb1055b commit c2b19cd

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

troubleshoot-hot-spot-issues.md

-9
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,6 @@ As shown in the load diagrams above, before setting `SHARD_ROW_ID_BITS`, load ho
120120

121121
To resolve the write hotspots brought by auto-increment primary keys, use `AUTO_RANDOM` to handle hotspot tables that have auto-increment primary keys.
122122

123-
> **Note:**
124-
>
125-
> Currently, this is an experimental feature, so it is not recommended to use it in the production environment. To enable this feature, use the following configuration:
126-
>
127-
> ```
128-
> [experimental]
129-
> allow-auto-random = true
130-
> ```
131-
132123
If this feature is enabled, TiDB generates randomly distributed and non-repeated (before the space is used up) primary keys to achieve the purpose of scattering write hotspots.
133124

134125
Note that the primary keys generated by TiDB are no longer auto-increment primary keys and you can use `LAST_INSERT_ID()` to obtain the primary key value assigned last time.

0 commit comments

Comments
 (0)