Question

We have a situation where we need to update on a single row several thousands time a second and this requirement lasts continuously for 5 hours every day due to the nature of the business. Design cannot be changed so we are looking for solutions. Usually we use very fast SSD drives for faster performance and so far we are able to cope up with the requests. But our traffic is increasing every day and we need another solution that can replace our current method and help us update same row many more thousands of time a second.

Any suggestion would be great. We use MYSQL 5.6 currently

No correct solution

OTHER TIPS

Consider using the MEMORY storage engine, so the changes will happen in memory. In case of a crash, you can rely on the binlog to recover the latest value. And if you have a slave, you can use InnoDB on the slave.

If you want to stay on InnoDB, consider the HandlerSocket plugin. It provides an SQL-less interface to InnoDB, and it should be much faster in your scenario.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top