title: Django csv taking very long time Outputting CSV
body: <p>I have a model which has a text entry of about 90,000 and I am outputting Django CSV but it is not converting outputting CVS i left browser for half an hour aand no output.But the method i used it worked fine when data is low.</p>
  
  <p>My method:-</p>
  
  <pre><code>def usertype_csv(request):
      response = HttpResponse(content_type='text/csv')
      response['Content-Disposition'] = 'attachment; filename="university_list.csv"'
      writer = csv.writer(response)
      news_obj = Users.objects.using('cms').all()
      writer.writerow(['NAME', 'USERNAME', 'E-MAIL ID','USER TYPE','USER TYPE'])
      for item in news_obj:
          writer.writerow([item.name.encode('UTF-8'),item.username.encode('UTF-8'),item.email.encode('UTF-8'),
                               item.userTypeId.userType.encode('UTF-8'),item.universityId.name.encode('UTF-8')])
  
  
      return response
  </code></pre>
  
  <p>I have testing this for smaller data it worked but for very larger files it is not working.
  Thanks in advance</p>