Getting deadlock error, during INSERT
statements:
Key:
insert into status (userid,lastactivity,lastseen)
values ('10691250','1536136821','1536136821')
on duplicate key update lastactivity = '1536136821',
lastseen = '1536136821'
SQL:
`insert into status (userid,lastactivity,lastseen)
values ('10691250','1536136821','1536136821')
on duplicate key
update lastactivity = '1536136821',
lastseen = '1536136821'`
Error:
Deadlock found when trying to get lock; try restarting transaction