How to structure a Social Network database structure like for example twitter
where we can follow a users and get all their tweets in our timeline, i have already checked this Firestore - how to structure a feed and follow system
but the solutions in the post look flawed.
Firestore is different where it requires redundant data to access data efficiently, but suppose i am following 1000 people and if i need to get the posts of all those users by querying data for each 15 users i am following and using limit(10)
method then orderBy(timeStamp)
there may be unread posts between Queries, because we are getting the post using the last post timeStamp
, how to structure the data for a social media app in Firestore