Can Firebase Realtime Database effectively loop through billions of posts and retrieve them by the users that posted them?

前端 未结 1 1018
小鲜肉
小鲜肉 2021-01-24 10:26

I am developing an iOS app with Firebase Realtime Database. The app will potentially have billions of posts with a number of images and data that needs to be retrieved based on

相关标签:
1条回答
  • 2021-01-24 10:49

    Billions of entries are no problem. You should check if Firebase is the most cost efficient solution if you have huge volume of data.

    1) Firebase can do that, but you probably don't want the user to wait for all entries (when there are a lot for a single user), but instead request them "page" by "page" and only request more pages on demand when the user scrolls up/down.

    2) If you ensure you have an index on the user id, then it doesn't have to go through each one individually. Searching by index is efficient.

    0 讨论(0)
提交回复
热议问题