Zen Follower
- Join Date:
- Jan 2009
- Posts:
- 222
- Plugin Contributions:
- 2
Post #1 by data_digger
Hi,
I'm not sure if it's the right place to post such kind of stuff, but I haven't found 'Tips&Tricks' forum ;).
I was curious how Zen Cart will behave on InnoDB tables, so I prepared little test and checked how much queries per second can MySQL perform using InnoDB and MyISAM storage engine. I turned out that InnoDB tables are about 25% faster then MyISAM. Also, InnoDB uses row level locking (read about locking on wikipedia), so it should scale better.
In my test I used MySQL ver. 5.0.41. I haven't tested 4.x versions, but if someone wants I can do it. I can't guarantee that InnoDB will outperform MyISAM storage engine in earlier versions of MySQL, but it's worth to try.
How to change MyISAM table to InnoDB?
To change storage engine of table X You have to execute following SQL code:
ALTER TABLE X ENGINE = InnoDB
If You wish to change all zen cart tables I suggest using this contribution:
http://www.zen-cart.com/forum/showthread.php?t=117053
If anyone wants to read more, please visit my blog:
InnoDB vs MyISAM performance in Zen Cart. Which is better?
data_digger,
**Query Cache v1.7-beta for ZC 1.3.9h** Reduce query count by 80% | **Randomized Tests**
www.data-diggers.com