Answer the question
In order to leave comments, you need to log in
MySQL MyISAM Issues - Duplicate Records and Large Table Crashes
Quite suddenly, strange things began to happen on the working project:
Answer the question
In order to leave comments, you need to log in
Too many connections - I will explain this. On myisam it is impossible to do as you described. Active selects lock the entire table and inserts wait for the lock to be released. It turns out that if your select slowed down even for a second, then according to your data, there are already 1000 inserts in the queue. That's too many connections for you.
Switch to innodb, it is slower, but there are locks at the row level and it recovers well from a crash.
And it is better to make one extended insert per 1000 rows than 1000 inserts per row. Think about it.
I note for those who fiercely shit bricks above - 70 million records in the largest table - this is not so much. Not much to say - "For example, if there are a lot of records in one table (70 million), then partitions can be used."
7 billion - and tens of terabytes of the total database size - that's a lot.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question