title: Many SQL queries and Gateway Timeout
body: <p>I have simple query</p>
  
  <pre><code>UPDATE `local-cadastre` SET `name` = :district_name WHERE `id` = :uniq_id
  </code></pre>
  
  <p>But this query is repeated about 24000 times in foreach cycle, it works good but browser displays <strong>504 Gateway Timeout</strong> error, is it possible to avoid this?</p>