title: How to prevent django from loading objects in memory when using `delete()`?
body: <p>I'm having memory issues because it looks like Django is loading the objects into memory when using <code>delete()</code>. Is there any way to prevent Django from doing that?</p>
  
  <p>From the Django docs:</p>
  
  <blockquote>
    <p>Django needs to fetch objects into memory to send signals and handle cascades. However, if there are no cascades and no signals, then Django may take a fast-path and delete objects without fetching into memory. For large deletes this can result in significantly reduced memory usage. The amount of executed queries can be reduced, too.</p>
  </blockquote>
  
  <p><a href="https://docs.djangoproject.com/en/1.8/ref/models/querysets/#delete">https://docs.djangoproject.com/en/1.8/ref/models/querysets/#delete</a></p>
  
  <p>I don't use signals. I do have foreign keys on the model I'm trying to delete, but I don't see why Django would need to load the objects into memory. It looks like it does, because my memory is rising as the query runs.</p>