title: Symfony2 using Thread
body: <p>I have large xml files (35 Mb - 80 Mb) in different schemas. I want to record that data into mysql.But loop takes too long and MAMP server crashes but phpmyadmin not. Another page is not running.
  How can I solve this problem?</p>
  
  <pre><code> foreach ($xml_object as $items):
      foreach ($items as $item):
          $result = $this-&gt;myORMRecordFunction($item);
      endforeach;
   endforeach;
  </code></pre>