I have one question for the store of big list in firestore (using flutter). I have a database like this:
--DataBase
------Post
---------Comment
And each post/comment must store the list of user who liked/add fav.
In a first time i have create two list in my collection Post/Comment

But I know that the solution is not good, because the size of a document is limited
So I thought about a second solution, which consists in adding a collection "userData" in the Post / Comment collections and for each user create a document containing the data. Like this :

But the second solution bothers me. Because when the user loads the Post list and the comment List, for each post/comment I will do an additional query to find if the user already likes/add fav. So if I have 50 comments per post and if the user looks at 100 posts, it generates 10,000 requests (100 * 50 * 2), and that per user.
I am afraid that the price of these requests does not cover the gains of the application.
So, is the second solution the recommended solution? Is there another solution ?
Thanks
userDatadocument for the current user, and check theirisFavfield, so that takes just one document read per post/comment. Or am I missing something? Seeing it in code would probably make that clearer. - Frank van Puffelen