Limit log search by updateId to 1M documents, will run out of heap space otherwise.