much more efficient fetch of a query of documents by ids