My concern is that the two updates are not transactional (update the last document and insert the new one).

It is possible (but probably unlikely, and not possible with the `ACMH` because we use locks there) for another thread to change the "last" document after this method retrieves it. That way, we could reset the "last" metadata to stale values.