I have beed reading quite a lot about he InnoDB engine internals and its locking mechanism (different locks and types of deadlocks)
I've seen this error when doing update operation:
'Deadlock found when trying to get lock; try restarting transaction'
when performing update operation and followed what is advised here to create an index on field called resource_id.
I wonder if there is a difference/ added value to avoid deadlocks in MySql DB, by adding new Index on a column that is already defined as PrimaryKey.
Why MySql does not block you to add Index on the same column that is already primary key? this leads me to the understanding that there is a difference.