You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql> create table t (id int key auto_increment);
Query OK, 0 rows affected (0.02 sec)
mysql> insert into t value ();
Query OK, 1 row affected (0.01 sec)
mysql> insert into t value ();
Query OK, 1 row affected (0.00 sec)
mysql> insert into t value ();
Query OK, 1 row affected (0.00 sec)
Development Task
On the release-4.0 branch, add a print here
tidb/meta/autoid/autoid.go
Line 469 in 98820cf
Each time, there is a log output:
It means that TiDB is not batch allocating the auto-id, it may have some impact on the performance.
On the master branch:
It's also allocating every time. Both 4.0 and master have the problem.
See also #21617, #11158
The text was updated successfully, but these errors were encountered: