SHPE-UTDallas / Website-Redesign

Redesign of the SHPE website
3 stars 2 forks source link

Figure out a proper schema for events and figure out how we want to associate events with users #54

Open gabriel-flynn opened 3 years ago

gabriel-flynn commented 3 years ago

In a relational database you would usually have an events table and have a one-to-many relationship between students and events. However, our limiting factor with Firebase is reads,writes deletes - needing to do a join on events, which in essence is doing a read on each event a student attended becomes VERY expensive really quick.

Instead what might be best is to have an events collection (table in a relational database) that includes just the necessary info about the event and doesn't have any fields that keep track of attendees.