DEV Community

Discussion on: Building a news feed with Firebase

Collapse
 
17cupsofcoffee profile image
Joe Clay

Have you read the section of the Firebase docs called Structure Your Database? The examples seem very relevant to what you're trying to do (especially the last one).

In your case, rather than storing a separate timeline for each user that you have to update manually, you might be better off storing a list of which users they're following, and then fetching posts based on that.

Collapse
 
mehedih_ profile image
Mehedi Hassan • Edited

This will result in data duplication + updating like/RT values would be cumbersome. Unless I store posts separately, which would result in further increase in the time required to load the timeline