Greg
Greg

Reputation: 7922

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?

Upvotes: 9

Views: 1594

Answers (1)

Frank Farmer
Frank Farmer

Reputation: 39386

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

Upvotes: 10

Related Questions