On my site I log every pageview (date, ip, referrer, page, etc) in a simple mysql table.
This table has the following activity:
- Lots of
INSERTS(about 300 per second).
This table is never bigger than 200MB.
Today, I changed this table from an InnoDB table to a MEMORY table, this made sense to me to prevent unnecessary hard disk IO. I also prune this table once per minute, to make sure it never get's too big. And this information is not very important, so on restart of MySQL it does not matter that it is removed.
Performance wise, things are running fine. But I noticed that while running tuning-primer, that my Current Lock Wait ratio is quite high using MEMORY table.
Current Lock Wait ratio = 1 : 561
If I change this table to InnoDB the ratio is:
Current Lock Wait ratio = 0 : 78600946
My question: Should I worry about this Lock Wait Ratio? And is there something I can change in my configuration to improve things so that the lock wait ratio isn't so high using MEMORY tables?