tangoclinh1995 / thehonorclub-mobileapp

The Honor Club's Mobile App Project for COMP 3111H
2 stars 1 forks source link

[Implementation] Re-implement pushing event to firebase using push() #24

Closed cameronsuen closed 7 years ago

cameronsuen commented 7 years ago

As suggested by @tangoclinh1995 in #2, current implementation of creation of new event in firebase is not efficient as the whole event list is monitored and updated real time. To save computation power, I propose that we use the push() method to do so, i.e.

var newEventRef = firebase.database.ref().child("event").push();

tangoclinh1995 commented 7 years ago

Hi @sleeplessclassics, please pay attention to this detail when you develop something which relates to the database

sleeplessclassics commented 7 years ago

Sure, I will be working on the events which need to be stored in the database. I will use the push method.