Rewrite reindex command to parallelize indexing tasks (bug 1025301)

Even with `values_list('id')` you think this takes a long time?