Rewrite reindex command to parallelize indexing tasks (bug 1025301)