I have a firestore document structure which looks like this:
I have two pages in my app, recipe list and recipe detail. In Recipe List page, I am accessing this document to get the name and picture. Then when a user clicks on a particular dish, I pass the name and picture as parameters to the dish details page. Now, in dish details page, I am once again querying this same document to get the ingredients and procedure.
My question is, in terms of performance, is it better to query a nested document like this or create a separate collection and documents for ingredient and procedures?
Please let me know.