简体   繁体   English

哪个MySQL数据库引擎更适合存储会话和会话数据:MyISAM或InnoDB?

[英]Which MySQL database engine is better for storing sessions and session data: MyISAM or InnoDB?

Pretty straightforward question. 非常直截了当的问题。

I use InnoDB for everything else, for a couple of reasons. 出于几个原因,我将InnoDB用于其他一切。 Is it a performance hit over MyISAM for a 'high-traffic' table? 对于“高流量”的桌子来说,它是否超过MyISAM的性能?

Since you're looking at a pretty even mix of read/write traffic, InnoDB is the better choice. 由于您正在寻找非常均匀的读/写流量组合,因此InnoDB是更好的选择。 MyISAM's full-table locks on every write would probably be murder. 每次写作时MyISAM的全表锁都可能是谋杀。 MyISAM fairs better with 90%+ read or 90%+ write situations. MyISAM以90%+读取或90%+写入情况更好地展示。

I believe that's mentioned in High Performance MySQL 我相信在高性能MySQL中提到过

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM