Heap挺適合做測(cè)試的時(shí)候使用
BDB是MySQL第一款事務(wù)安全的存儲(chǔ)引擎。在Berkeley DB database library的基礎(chǔ)上建立,同樣是事務(wù)安全的,但BDB的普及率顯然不及InnoDB,因?yàn)榇蠖鄶?shù)在MySQL中尋找支持事務(wù)的存儲(chǔ)引擎的同時(shí)也在找支持MVCC或是行級(jí)鎖定存儲(chǔ)引擎,而B(niǎo)DB只支持Page-level Lock。
附上一張《High Performance MySQL》 中的各存儲(chǔ)引擎的特性表
Attribute
MyISAM
Heap
BDB
InnoDB
Transactions
No
No
Yes
Yes
Lock granularity
Table
Table
Page (8 KB)
Row
Storage
Split files
In-memory
Single file per table
Tablespace(s)
Isolation levels
None
None
Read committed
All
Portable format
Yes
N/A
No
Yes
Referential integrity
No
No
No
Yes
Primary key with data
No
No
Yes
Yes
MySQL caches data records
No
Yes
Yes
Yes
Availability
All versions
All versions
MySQL-Max
All Versions