I obtained a firestore database with 2 collections of patients and appointments and I am trying to make a query to fill an appointment table in an html view that also contains patient information, however, since firestore does not handle the union between documents, I don't know how it could affect performance if for each appointment document, call the patient's collection and, therefore, get the related data.
Is the Firestore API smart enough to join all those queries and make a single HTTP request?
I am currently using Java with the Firestore administration API to perform queries.