title: Insert/update bulk data mysql php in multiple tables
body: <p>I wants to batch process insert/update operations on multiple tables. I have few tables for insert/update actions for each activity. Which sometimes cause load average high of DB server if multiple activities going on parallel.</p>
  
  <p>So i am willing to batch process insert/update on these tables like</p>
  
  <pre><code>BEGIN
  INSERT....
  UPDATE...
  ...
  END;
  </code></pre>
  
  <p>How to achive this in php/mysql.</p>
  
  <p>Thanks in advance.</p>