 <ol> <li>You should show us code of <code>scrap_and_save_product</code> function.</li> <li>Try to make more memory-efficient queries with large data. Details described <a href="http://www.poeschko.com/2012/02/memory-efficient-django-queries/" rel="nofollow">here</a>. Hope these helps!</li> </ol>