Jump to content

[SOLVED] Locking Tables


coutts

Recommended Posts

ISAM table typles LOCK on INSERT/UPDATE/ALTERATIONS. Nature of the beast. That means no further queries can be issues against said ISAM TABLE until the process is complete.

 

This is the most common cause of sites getting deadlocked due to a huge queue of slow-running queries.

 

ISAM does Table-level locking.

InnoDB does row-level locking (Better)

Falcon (MySQL 6.0) does coordinate level locking (Bestesterester)

 

I think the new MySQL 6.0 Miriam (Replacement for ISAM) engine does row-level locking, too.

If you think about it there is an extremely limited situation that causes an issue.

 

Like if an Admin is updating a product database and then someone attempts to place an order on you site the item price may be incorrect.

 

However properly written php and if needed innoDB can cover you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.