Adding multiple listeners to the same Firebase in an iOS app -


I have an iOS app that uses Firebase and stores data in dictionaries in the following basic succession ...

Users & gt; Projects & gt; Board

(The children of the board are the children of the project, which is the child of the user)

I have an audience at the project and board level - I started a firebase reference Is the URL for each of these (using the initWithURL).

The data stored at the project level is very small and is not updated sometimes (basically like the project name) but the data at the board level is significant enough size and will be updated very often - it Is a live drawing app, so at any time a user has his finger on the board, sending and receiving data.

My question: Is there any major reduction in this with 2 listeners in this way, one of which is a child which is constantly being updated, while the parents are relatively stable? Should I take data at the board level outside this hierarchy so that the listener at the project level closes simultaneously? Any more or less data is being transferred, and I will be charged unnecessarily in such a way (especially by calling the Init White URL twice)?


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -