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

时光怂恿深爱的人放手 提交于 2019-12-06 21:11:04

问题


Pretty straightforward question.

I use InnoDB for everything else, for a couple of reasons. Is it a performance hit over MyISAM for a 'high-traffic' table?


回答1:


Since you're looking at a pretty even mix of read/write traffic, InnoDB is the better choice. MyISAM's full-table locks on every write would probably be murder. MyISAM fairs better with 90%+ read or 90%+ write situations.

I believe that's mentioned in High Performance MySQL



来源:https://stackoverflow.com/questions/3359403/which-mysql-database-engine-is-better-for-storing-sessions-and-session-data-myi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!