I have a table like this:
create table `sample` (
id int auto_increment,
sid int,
message varchar(100),
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_sid` (`sid`)
);
sid is not an unique index.
When I executing insert, all record will have the same value of sid. Will these insert statement lock the row by insert intention lock as they all have the same insert index?