Some Applications need to store some transient data which is frequently regenerated and MEMORY table look like a very good match for this sort of tasks. Unfortunately this will bite when you will be looking to add Replication to your environment as MEMORY tables do not play well with replication.
The reason is very simple - both STATEMENT and ROW replication
contain the changes to the data in binary logs. This requires the
data to be same on Master and Slave. When you restart the slave
you will lose contents of your MEMORY tables and replication will
break. STATEMENT replication will often continue to run, with
contents of the table just being
different as there is a little checks whenever statements produce
the same results on the slave. ROW replication will
complain about ROW not exist for UPDATE or DELETE operation.
So what you can do ?
Use Innodb Table Instead Innodb is quite fast when it …
[Read more]