Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When using batch to bulk insert, gaps in AUTO_INCREMENT IDs are created when reaching 50+ inserts even with innodb_autoinc_lock_mode set to 1 (consecutive)
The mySQL, documentation says :
With innodb_autoinc_lock_mode set to 0 (“traditional”) or 1 (“consecutive”), the auto-increment values generated by any given statement are consecutive, without gaps, because the table-level AUTO-INC lock is held until the end of the statement, and only one such statement can execute at a time.
So I'm not sure that's intended. Due to the fact that insertId, only return one ID, i think it's very important to not have gaps in IDs so we can deduce inserted ones.
From https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/263
Attachments
Issue Links
- is blocked by
-
MDEV-30366 Permit bulk implementation to return ALL individual results
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is blocked by |
Fix Version/s | 3.4 [ 29848 ] |
Fix Version/s | 3.5.0 [ 30118 ] | |
Fix Version/s | 3.4 [ 29848 ] |
Fix Version/s | 3.4.1 [ 29948 ] | |
Fix Version/s | 3.5.0 [ 30118 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Component/s | batch [ 16503 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |