I have about 50 scripts on a server inserting between 3 and 6 sets of data every second. I am finding that MySQL is in turn hogging all system resources and sometimex it crashes the server.
I was thinking that if I collect 5 minutes worth of queries and do 1 bulk insert per script it would help but will it help by a small margin or a big one? Does anyone have any experience switching to bulk inserts?
My Tables are MyISAM (can change them if neccessary and if I won’t lose data).
MySQL Version: 5.1.56
Thanks
It will be a definite noticeable difference. With bulk you are changing from many database open,query,close to a single open, many queries and close. If you want to limit the load further simply write a lot of them to a flat file and have a cron job process that file into the database at off-peak times