reciprocity/ggrc-core — pull request #405 by vraj-reciprocity (2013-10-03 13:26:39+00:00)
Title: Break reindexing into chunks

With 20,000 rows in programs, reindexing took around 6.5 minutes.
With the old code, reindexing failed after 30 minutes with "MySQL has gone away".
When I increased CHUNK_SIZE to 1000 (instead of 100), reindexing took around 24 minutes.