I have an application where new children get added to Firebase every 5 seconds or so. I have thousands of children.
On application load, I\'d like to process the ini
There are two possible solutions to this problem, neither satisfying:
1) Timestamp your children and only request children that have a timestamp greater than a "now" value. This is not great because you may have a synchronicity issue between your application's "now" and the "now" on whatever is pushing the data to Firebase or the Firebase server value for "now".
2) Use value and child added. Any duplicates seen in child_added that had already been seen in value may be discarded. This is unuseable for large data sets as it requires downloading all historical data TWICE!
Why can't there be a command like "child_added" that DOESN'T give everything ever?