Only use progress bars for iterating over the document collection.