Details
-
Improvement
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
3.0.0
-
None
-
None
Description
Instead of using SELECT FOR UPDATE, for MYSQL, use the recommended approach which only requires once client interaction instead of two:
UPDATE child_codes SET counter_field = LAST_INSERT_ID(counter_field + 1); SELECT LAST_INSERT_ID();
https://dev.mysql.com/doc/refman/5.7/en/innodb-locking-reads.html
Attachments
Issue Links
- is related to
-
HIVE-16886 HMS log notifications may have duplicated event IDs if multiple HMS are running concurrently
- Closed