Ensures that the reindexing attached to the transaction only happens once for each request
Ensures that the reindex operation is thread-safe
Updates history.