mozilla/kitsune — pull request #1853 by rlr (2014-03-05 16:39:11+00:00)
Title: [bug 978662] Chunk the twoots to save memory.

Instead of loading all of the soldier's replies at once, I load them 2500 at a time. On my local machine, the cronjob went from peaking over 500MB of RAM used to under 100MB. I am pretty sure this will be good enough for the admin machine to handle, but we'll know once it lands.

I also had to tweak the `chunked` utility so that it takes an optional length. Because otherwise it was evaluating the queryset when trying to get it's length.

Anyways, r?