title: mysql is taking too long to insert rows
body: <p>I have one page where users can import their contacts. Initially it was working fine upto 3000 contacts but when I tried to import 10000 contacts it started taking too much time and now the situation is that for even 100 contacts it is taking too much time. I tried in <code>mysql</code> <code>my.cnf</code> file and increased the max packet size to 256 mb. My <code>php.ini</code> max upload limit is 512 mb, memory limit is 512 mb. I tried several methods to solve this problem but no success.</p>
  
  <p><code>my.cnf</code>:</p>
  
  <pre><code>[mysqld]
  set-variable = max_connections=500000
  log-slow-queries
  safe-show-database
  local-infile=0
  max_allowed_packet=256M
  </code></pre>
  
  <p>I also tried to increase buffer limit, cache limit but no success there either.</p>