title: How to use python multiprocessing module in django view
body: <p>I have a simple function that go over a list of URLs, using <code>GET</code> to retrieve some information and update the DB (<code>PostgresSQL</code>) accordingly. The function works perfect. However, going over each URL one at a time talking too much time.</p>
  
  <p>Using python, I'm able to do to following to parallel these tasks:</p>
  
  <pre><code>from multiprocessing import Pool
  
  def updateDB(ip):
       code goes here...
  
  if __name__ == '__main__':
      pool = Pool(processes=4)              # process per core
      pool.map(updateDB, ip)
  </code></pre>
  
  <p>This is working pretty well. However, I'm trying to find how do the same on django project. Currently I have a function (view) that go over each URL to get the information, and update the DB.</p>
  
  <p>The only thing I could find is using Celery, but this seems to be a bit overpower for the simple task I want to perform.</p>
  
  <p>Is there anything simple that i can do or do I have to use Celery?</p>