I would like to ask the general actual production environment mysql insert a piece of data, time control in what range?

I now have a user record table, which specially records the like behavior of users. I now divide the like table into four tables, five processes write data at the same time, and now the writing speed is the fastest 0.06s, 0.08s the slowest 0.12s,

I would like to ask the general actual production environment mysql to insert a piece of data, what is the time limit?

I want mysql to write concurrently, reading can reach 200, what should I do?

take apart the table a little more.

Mar.18,2022

time control depends on machine performance and business requirements. InnoDB engine, regular table, server 32 core, 64g memory, disk raid10 , normal insertion can be controlled within 10 milliseconds

I really don't know how your machine is configured. It's not a problem for a normal server to achieve 200 concurrency unless SQL is poorly written or indexed.

therefore, it is recommended not to disassemble the table first, but to see if the engine uses InnoDB , whether the version is = 5.7 , and whether the SQL statement is indexed

.
Menu