ptop reindex fix with chunking
Merge pull request #979 from dimagi/ptop-reindex-fixes

ptop reindex fix with chunking