The hype over Firebase database structure is real; people just don't know how to do it. The idea behind it is simple and clear--stop thinking in the relational world data structuring because such thing won't simply work in a document-based architecture.
Structuring data within our Realtime Database
How to do it...
Firebase database is built to be dynamic and flat, so the idea of data redundancy is somehow a must. The idea from all this is to fetch data as fast as possible, and true, in order to add or delete data, you will need it mentioned pretty much everywhere. But that's a cost we will pay if we want to optimize the downloading and data fetching time.
- Let me present an example that demonstrates this thought...