Re: Table Locking Memory Engine
Posted by:
Rick James
Date: August 09, 2011 08:41PM
If you are using the MEMORY engine, the query cache is probably hurting performance, and should be turned off.
I still need to see SHOW CREATE TABLE.
SHOW VARIABLES LIKE 'innodb%';
Look in the slowlog.
Do SHOW PROCESSLIST several times while the system is busy -- what queries are showing up most often. (Don't show us the output; most of the output is irrelevant.)
> the whole table is deleted and ...
Via DROP TABLE? DELETE * FROM tbl? TRUNCATE TABLE?
There are significant differences in the performance of those three statements.
> $sql = "DELETE FROM $dbname where timeout < $timestamp";
The table in that query needs an index on `timeout`.
Subject
Written By
Posted
Re: Table Locking Memory Engine
August 09, 2011 08:41PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.