I’d like to add that I prefer not to store any sort of fields within collection which should indicate if a document was already processed, because updating it every time a document is processed would lower read performance significantly.