I'm using MySQL and primarily work with one very large table. I have scripts to insert new rows several times per hour, and each run takes several minutes to complete.
The problem is that no select statement works while data is being inserted. For each select or update command on the processlist, the status is "Locked" I think I understand why it's doing that. After a day or two, several hundred processes build up that are Locked and everything comes to a grinding halt.
How do I get around this issue? Is there something I can configure in my.cnf to alleviate this problem?
Thanks,
Mark