The difference between InnoDB storage engine and storage engine MyIsam

Feature Comparison

After mysql5.5 default storage engine is InnoDB, before this default storage engine is MyIsam

Feature MyIsam InnoDB
Lock mechanism Table lock Row lock
Affairs not support stand by
Foreign key not support stand by
B-tree index stand by stand by
Hash indexes not support stand by
Full-text index stand by It does not support (support began after 5.6.4)

Other differences

1) For the delete operation, InnoDB is progressive deletion, MyIsam is deleted surface reconstruction

2) for the count () function, the internal MyIsam maintains a count variable, InnoDB need to scan the entire table

3) For self-growth fields, such as the need to index the index must be independent, MyIsam allows multi-column indexes

 

Comparison of application scenarios

MyIsam

1) for reading and writing little scenes, such as a news blog site

2) often use count () function

 

InnoDB

1) Reading and writing are also many scenes

2) high security requirements, the need to support the transaction

 

Guess you like

Origin www.cnblogs.com/huanglf714/p/11106810.html