Reduce the number of queries performed during indexing
Merge indexing query reduction.