Delete doc_id from DocsWithHistoryOps set when processing
Flush all docs in a project before getting updates