Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
markhops
· 10y ago · 0 comments
Stupid question here: what are serial keys, and how do they impose locks?
Comments
[–]
markhops
OP
10y ago
Ah, did he mean "SERIAL" as in "BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE" ... and the reason why this locks a table is because the database, on insert, needs to figure out a valid key?