re: Building a news feed with Firebase VIEW POST


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.


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

Code of Conduct Report abuse