How should I structure and denormalize private invites in firebase? -


so use case invite has following properties

  • creatorid
  • invitedlist (collection of userids)
  • private/public

how should structure in firebase? how should denormalize invited userids?

typical query "get invites i've either created or been invited to."

i'd imagine want create root node of privateinvites , set index on creatorid? if want list of invites i've been invited to, what's efficient way of setting in firebase? need set denormalized node , duplicate data adding invite each invitedid individually?


Comments

Popular posts from this blog

iOS: Performance of reloading UIImage(name:...) -

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -