Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. Is it a performance hit over MyISAM for a 'high-traffic' table?

like image 854
Greg Avatar asked Jul 29 '10 04:07

Greg


1 Answers

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

like image 160
Frank Farmer Avatar answered Nov 15 '22 14:11

Frank Farmer