I would like to talk with Firebase. I need to display for each user a list of the group to which they belong, as well as for each group of all members.
Due to the fact that Firebase is designed, and in order to have acceptable performance, I think by creating a list of all groups containing a list of members, and for each user, an entry with the entire group in which they belong.
My first question is: is it right?
If so, then my second question is how can I atomize (or delete) the user, i.e. make sure that the user is added to the group, and the group is added to the user or not added at all (i.e. is never stored in 1 and make the database inconsistent)?
source share